Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 486d4c08 authored by Florian Tobias Schandinat's avatar Florian Tobias Schandinat
Browse files

viafb: no need to write CRTC values twice



Later the correct values will be written so there is no need to
write early some values which might be wrong.

Signed-off-by: default avatarFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
parent 0f8132b7
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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]);