summaryrefslogtreecommitdiff
path: root/arch/arm/plat-mxc/include/mach/hardware.h
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@linaro.org>2011-08-13 16:14:01 (GMT)
committerSascha Hauer <s.hauer@pengutronix.de>2011-08-16 07:00:36 (GMT)
commite309fb1864e2d59ff030d5b95c4fb8188ab0eb4c (patch)
tree0d15f799f03b14b3dc774fb4d7fa2c1124d99a2c /arch/arm/plat-mxc/include/mach/hardware.h
parent93ee7a9340d64f20295aacc3fb6a22b759323280 (diff)
downloadlinux-fsl-qoriq-e309fb1864e2d59ff030d5b95c4fb8188ab0eb4c.tar.xz
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/include/mach/hardware.h')
-rw-r--r--arch/arm/plat-mxc/include/mach/hardware.h2
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 a8bfd56..77f6556 100644
--- a/arch/arm/plat-mxc/include/mach/hardware.h
+++ b/arch/arm/plat-mxc/include/mach/hardware.h
@@ -116,4 +116,6 @@
.type = _type, \
}
+#define IMX_GPIO_TO_IRQ(gpio) (MXC_GPIO_IRQ_START + (gpio))
+
#endif /* __ASM_ARCH_MXC_HARDWARE_H__ */