viafb: no need to write CRTC values twice
authorFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Wed, 16 Mar 2011 13:46:36 +0000 (13:46 +0000)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Mon, 21 Mar 2011 17:19:26 +0000 (17:19 +0000)
Later the correct values will be written so there is no need to
write early some values which might be wrong.

Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
drivers/video/via/hw.c

index a982718f399893ec59124ced9210edc080c57f94..c4d2136ae338ed7feaba0f9eca70c0838c26ecd4 100644 (file)
@@ -2401,9 +2401,6 @@ int viafb_setmode(struct VideoModeTable *vmode_tbl, int video_bpp,
 
        viafb_write_reg_mask(0x15, VIASR, 0xA2, 0xA2);
 
-       /* Write CRTC */
-       viafb_fill_crtc_timing(crt_timing, vmode_tbl, video_bpp / 8, IGA1);
-
        /* Write Graphic Controller */
        for (i = 0; i < StdGR; i++)
                via_write_reg(VIAGR, i, VPIT.GR[i]);