From: Krzysztof Helt Date: Thu, 24 Jul 2008 04:30:56 +0000 (-0700) Subject: tridentfb: use mmio access for clock setting X-Git-Tag: v2.6.27-rc1~595 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1724fecabfed504a4cfb87319ad3b9d3a8baa92;p=linux-2.6 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 af02af1135..f3153a82f9 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); }