]> Pileus Git - ~andy/linux/commitdiff
arm/mxs: move MXS_GPIO_NR into mach/mxs.h
authorShawn Guo <shawn.guo@linaro.org>
Sat, 13 Aug 2011 16:14:07 +0000 (00:14 +0800)
committerSascha Hauer <s.hauer@pengutronix.de>
Wed, 17 Aug 2011 06:33:04 +0000 (08:33 +0200)
The patch moves MXS_GPIO_NR into mach/mxs.h, so that we only use
standard gpiolib helpers in mach/gpio.h.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/mach-mxs/include/mach/gpio.h

index 0a95d58b13f6ec2e3553012508bcf99e9c0bb1ef..56025aa0a639ea68d7b523c147004215dc0010cf 100644 (file)
@@ -22,8 +22,6 @@
 
 #include <asm-generic/gpio.h>
 
-#define MXS_GPIO_NR(bank, nr)  ((bank) * 32 + (nr))
-
 /* use gpiolib dispatchers */
 #define gpio_get_value         __gpio_get_value
 #define gpio_set_value         __gpio_set_value