diff options
author | Krzysztof Helt <krzysztof.h1@wp.pl> | 2008-07-24 00:30:56 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-24 13:47:35 -0400 |
commit | c1724fecabfed504a4cfb87319ad3b9d3a8baa92 (patch) | |
tree | 4f8aff80d3581362b06f67a6b4aa572733d49660 /drivers/video | |
parent | 7f762d23e607af786bba8ff4a18059f43950c0e8 (diff) |
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 <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>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/tridentfb.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
680 | vga_mm_wseq(par->io_virt, ClockHigh, hi); | 680 | vga_mm_wseq(par->io_virt, ClockHigh, hi); |
681 | vga_mm_wseq(par->io_virt, ClockLow, lo); | 681 | vga_mm_wseq(par->io_virt, ClockLow, lo); |
682 | } else { | 682 | } else { |
683 | outb(lo, 0x43C8); | 683 | t_outb(par, lo, 0x43C8); |
684 | outb(hi, 0x43C9); | 684 | t_outb(par, hi, 0x43C9); |
685 | } | 685 | } |
686 | debug("VCLK = %X %X\n", hi, lo); | 686 | debug("VCLK = %X %X\n", hi, lo); |
687 | } | 687 | } |