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/hw.c | |
parent | f18e3e0ce0dacca497e3f1547095b3f9b111b0f7 (diff) | |
download | blackbird-op-linux-c174e3a3cd0594958c9afc6cdb8fbe20780d9c76.tar.gz blackbird-op-linux-c174e3a3cd0594958c9afc6cdb8fbe20780d9c76.zip |
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/hw.c')
-rw-r--r-- | drivers/video/via/hw.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/video/via/hw.c b/drivers/video/via/hw.c index 52d41f011d85..8b4bdf53b95e 100644 --- a/drivers/video/via/hw.c +++ b/drivers/video/via/hw.c @@ -1507,18 +1507,11 @@ void viafb_fill_crtc_timing(struct crt_mode_table *crt_table, crt_reg.ver_sync_end += crt_reg.ver_sync_start; h_addr = crt_reg.hor_addr; v_addr = crt_reg.ver_addr; - if (set_iga == IGA1) { - viafb_unlock_crt(); - viafb_write_reg_mask(CR17, VIACR, 0x00, BIT7); - } - if (set_iga == IGA1) via_set_primary_timing(&crt_reg); else if (set_iga == IGA2) via_set_secondary_timing(&crt_reg); - viafb_lock_crt(); - viafb_write_reg_mask(CR17, VIACR, 0x80, BIT7); viafb_load_fetch_count_reg(h_addr, bpp_byte, set_iga); /* load FIFO */ |