Skip to content

Commit

Permalink
ARM: iop32x: use __iomem pointers for MMIO
Browse files Browse the repository at this point in the history
ARM is moving to stricter checks on readl/write functions,
so we need to use the correct types everywhere.

Cc: Imre Kaloz <kaloz@openwrt.org>
Cc: Krzysztof Halasa <khc@pm.waw.pl>
Cc: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
  • Loading branch information
Arnd Bergmann committed Sep 19, 2012
1 parent abf2ba1 commit 3c65c6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-iop32x/glantank.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ static struct i2c_board_info __initdata glantank_i2c_devices[] = {

static void glantank_power_off(void)
{
__raw_writeb(0x01, 0xfe8d0004);
__raw_writeb(0x01, IOMEM(0xfe8d0004));

while (1)
;
Expand Down

0 comments on commit 3c65c6b

Please sign in to comment.