Skip to content

Commit

Permalink
viafb: no need to write CRTC values twice
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Florian Tobias Schandinat authored and Florian Tobias Schandinat committed Mar 21, 2011
1 parent 0f8132b commit 486d4c0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/video/via/hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 486d4c0

Please sign in to comment.