diff options
author | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2011-05-22 23:40:46 +0000 |
---|---|---|
committer | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2011-08-05 12:47:06 +0000 |
commit | c174e3a3cd0594958c9afc6cdb8fbe20780d9c76 (patch) | |
tree | 0243ebcaf9884dedd4fab8152ffc42c9bf3594b4 /drivers/video/via/via_modesetting.c | |
parent | f18e3e0ce0dacca497e3f1547095b3f9b111b0f7 (diff) | |
download | op-kernel-dev-c174e3a3cd0594958c9afc6cdb8fbe20780d9c76.zip op-kernel-dev-c174e3a3cd0594958c9afc6cdb8fbe20780d9c76.tar.gz |
viafb: remove superfluous register unlocking/locking
The locking is done within the viafb_set_*_timing functions so there
is no need to do it here. Move a missing hardware reset into the
modesetting function.
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'drivers/video/via/via_modesetting.c')
-rw-r--r-- | drivers/video/via/via_modesetting.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/via/via_modesetting.c b/drivers/video/via/via_modesetting.c index 016d457..0e431ae 100644 --- a/drivers/video/via/via_modesetting.c +++ b/drivers/video/via/via_modesetting.c @@ -82,6 +82,10 @@ void via_set_primary_timing(const struct display_timing *timing) /* lock timing registers */ via_write_reg_mask(VIACR, 0x11, 0x80, 0x80); + + /* reset timing control */ + via_write_reg_mask(VIACR, 0x17, 0x00, 0x80); + via_write_reg_mask(VIACR, 0x17, 0x80, 0x80); } void via_set_secondary_timing(const struct display_timing *timing) |