savagefb: Replace magic register address with define
authorTormod Volden <debian.tormod@gmail.com>
Sun, 3 Apr 2011 12:54:04 +0000 (12:54 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 6 Apr 2011 16:49:52 +0000 (09:49 -0700)
MM_SERIAL1 was already defined, but not used.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/video/savage/savagefb-i2c.c

index b16e6138fdd46a971ee20c542a65a32a634bf0c4..58c8a3ce33c53825e4e8565e24b9f2dc11ef7273 100644 (file)
@@ -191,7 +191,7 @@ void savagefb_create_i2c_busses(struct fb_info *info)
                par->chan.algo.getscl = prosavage_gpio_getscl;
                break;
        case FB_ACCEL_SAVAGE2000:
-               par->chan.reg         = 0xff20;
+               par->chan.reg         = MM_SERIAL1;
                par->chan.ioaddr      = par->mmio.vbase;
                par->chan.algo.setsda = savage4_gpio_setsda;
                par->chan.algo.setscl = savage4_gpio_setscl;