input: rpcmouse: use __iomem pointers for MMIO
authorArnd Bergmann <arnd@arndb.de>
Fri, 14 Sep 2012 20:30:12 +0000 (20:30 +0000)
committerArnd Bergmann <arnd@arndb.de>
Wed, 19 Sep 2012 13:37:13 +0000 (15:37 +0200)
ARM is moving to stricter checks on readl/write functions,
so we need to use the correct types everywhere.

Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: linux-input@vger.kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/input/mouse/rpcmouse.c

index 272deddc8db65df8161636c5464f6009ec482e28..21c60fea5d310a6a2bbaebcd8d6e8d4e244d50af 100644 (file)
@@ -42,7 +42,7 @@ static irqreturn_t rpcmouse_irq(int irq, void *dev_id)
 
        x = (short) iomd_readl(IOMD_MOUSEX);
        y = (short) iomd_readl(IOMD_MOUSEY);
-       b = (short) (__raw_readl(0xe0310000) ^ 0x70);
+       b = (short) (__raw_readl(IOMEM(0xe0310000)) ^ 0x70);
 
        dx = x - rpcmouse_lastx;
        dy = y - rpcmouse_lasty;