]> err.no Git - linux-2.6/commitdiff
tridentfb: use mmio access for clock setting
authorKrzysztof Helt <krzysztof.h1@wp.pl>
Thu, 24 Jul 2008 04:30:56 +0000 (21:30 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Jul 2008 17:47:35 +0000 (10:47 -0700)
Use the mmio outb function instead of direct one.  The mmio registers are
already mapped (in the probe function).

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/tridentfb.c

index af02af11353cbefcd5928f6f9382647558a4b0ce..f3153a82f926cee081026d6d93cc3eef1096a984 100644 (file)
@@ -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);
 }