ARM: mmp: fix build error on gpio
authorHaojian Zhuang <haojian.zhuang@marvell.com>
Wed, 9 Nov 2011 02:47:21 +0000 (10:47 +0800)
committerEric Miao <eric.y.miao@gmail.com>
Mon, 14 Nov 2011 05:34:29 +0000 (13:34 +0800)
commit22f4cb4bd06db14912f69039917422fe0c5b11fb
tree6bcd9d72a9f1c82a58ee4815e62cd901ecd8d543
parentc0a39151a4055332897cba615623d3de2f3896df
ARM: mmp: fix build error on gpio

Parameters of GPIO_REG() should be assigned as volatile.

arch/arm/plat-pxa/include/plat/gpio.h: In function ‘gpio_get_value’:
arch/arm/plat-pxa/include/plat/gpio.h:12:21: error: invalid operands to
binary & (have ‘void *’ and ‘int’)
arch/arm/plat-pxa/include/plat/gpio.h: In function ‘gpio_set_value’:
arch/arm/plat-pxa/include/plat/gpio.h:21:4: error: lvalue required as
left operand of assignment
arch/arm/plat-pxa/include/plat/gpio.h:23:4: error: lvalue required as
left operand of assignment

Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
arch/arm/mach-mmp/include/mach/gpio-pxa.h