summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@linaro.org>2011-08-14 00:14:07 +0800
committerSascha Hauer <s.hauer@pengutronix.de>2011-08-17 08:33:04 +0200
commita579cebd76d87fc5c81b8752783632e63c002dcc (patch)
treeff2d049f388e4f43ef4fe60394136f427edee6ec
parent7e6c53aac38eec4e7bca1e4e9a5a6d7e45b30784 (diff)
downloadop-kernel-dev-a579cebd76d87fc5c81b8752783632e63c002dcc.zip
op-kernel-dev-a579cebd76d87fc5c81b8752783632e63c002dcc.tar.gz
arm/mxs: move MXS_GPIO_NR into mach/mxs.h
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>
-rw-r--r--arch/arm/mach-mxs/include/mach/gpio.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/arm/mach-mxs/include/mach/gpio.h b/arch/arm/mach-mxs/include/mach/gpio.h
index 0a95d58..56025aa 100644
--- a/arch/arm/mach-mxs/include/mach/gpio.h
+++ b/arch/arm/mach-mxs/include/mach/gpio.h
@@ -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
OpenPOWER on IntegriCloud