From: Krzysztof Helt Date: Thu, 24 Jul 2008 04:30:56 +0000 (-0700) Subject: tridentfb: use mmio access for clock setting X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c1724fecabfed504a4cfb87319ad3b9d3a8baa92;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git tridentfb: use mmio access for clock setting Use the mmio outb function instead of direct one. The mmio registers are already mapped (in the probe function). Signed-off-by: Krzysztof Helt Cc: "Antonino A. Daplas" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/tridentfb.c b/drivers/video/tridentfb.c index af02af11353c..f3153a82f926 100644 --- a/drivers/video/tridentfb.c +++ b/drivers/video/tridentfb.c @@ -680,8 +680,8 @@ static void set_vclk(struct tridentfb_par *par, unsigned long freq) vga_mm_wseq(par->io_virt, ClockHigh, hi); vga_mm_wseq(par->io_virt, ClockLow, lo); } else { - outb(lo, 0x43C8); - outb(hi, 0x43C9); + t_outb(par, lo, 0x43C8); + t_outb(par, hi, 0x43C9); } debug("VCLK = %X %X\n", hi, lo); }