diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2011-08-13 12:14:01 -0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-08-16 03:00:36 -0400 |
commit | e309fb1864e2d59ff030d5b95c4fb8188ab0eb4c (patch) | |
tree | 0d15f799f03b14b3dc774fb4d7fa2c1124d99a2c /arch/arm/plat-mxc | |
parent | 93ee7a9340d64f20295aacc3fb6a22b759323280 (diff) |
arm/mxc: do not use gpio_to_irq() for static initializers
The patch defines IMX_GPIO_TO_IRQ() in mach/hardware.h and replaces
all the uses of gpio_to_irq() in static initializers with
IMX_GPIO_TO_IRQ().
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/plat-mxc')
-rw-r--r-- | arch/arm/plat-mxc/include/mach/hardware.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/plat-mxc/include/mach/hardware.h b/arch/arm/plat-mxc/include/mach/hardware.h index a8bfd565dcad..77f6556f59a7 100644 --- a/arch/arm/plat-mxc/include/mach/hardware.h +++ b/arch/arm/plat-mxc/include/mach/hardware.h | |||
@@ -116,4 +116,6 @@ | |||
116 | .type = _type, \ | 116 | .type = _type, \ |
117 | } | 117 | } |
118 | 118 | ||
119 | #define IMX_GPIO_TO_IRQ(gpio) (MXC_GPIO_IRQ_START + (gpio)) | ||
120 | |||
119 | #endif /* __ASM_ARCH_MXC_HARDWARE_H__ */ | 121 | #endif /* __ASM_ARCH_MXC_HARDWARE_H__ */ |