diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2011-06-22 08:25:27 -0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-07-07 04:00:01 -0400 |
commit | c084473d7a51dde74008e44d995f6da569f17802 (patch) | |
tree | ea776ce35f2916f11fac4f23e73e9dac3c7e4deb /arch/arm/mach-imx | |
parent | 31b738a4f4dfea3b464a9cb5fe18aa4ba85eb984 (diff) |
ARM: mach-imx/mx27_3ds: Use the standard gpio_to_irq function
Use the standard gpio_to_irq function instead of a dedicated IRQ_GPIOx macro.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx')
-rw-r--r-- | arch/arm/mach-imx/mach-mx27_3ds.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/arm/mach-imx/mach-mx27_3ds.c b/arch/arm/mach-imx/mach-mx27_3ds.c index e7965ec176fc..ccb9c3f7fe20 100644 --- a/arch/arm/mach-imx/mach-mx27_3ds.c +++ b/arch/arm/mach-imx/mach-mx27_3ds.c | |||
@@ -47,6 +47,7 @@ | |||
47 | #define SPI2_SS0 IMX_GPIO_NR(4, 21) | 47 | #define SPI2_SS0 IMX_GPIO_NR(4, 21) |
48 | #define EXPIO_PARENT_INT gpio_to_irq(IMX_GPIO_NR(3, 28)) | 48 | #define EXPIO_PARENT_INT gpio_to_irq(IMX_GPIO_NR(3, 28)) |
49 | #define PMIC_INT IMX_GPIO_NR(3, 14) | 49 | #define PMIC_INT IMX_GPIO_NR(3, 14) |
50 | #define SD1_CD IMX_GPIO_NR(2, 26) | ||
50 | 51 | ||
51 | static const int mx27pdk_pins[] __initconst = { | 52 | static const int mx27pdk_pins[] __initconst = { |
52 | /* UART1 */ | 53 | /* UART1 */ |
@@ -135,13 +136,13 @@ static const struct matrix_keymap_data mx27_3ds_keymap_data __initconst = { | |||
135 | static int mx27_3ds_sdhc1_init(struct device *dev, irq_handler_t detect_irq, | 136 | static int mx27_3ds_sdhc1_init(struct device *dev, irq_handler_t detect_irq, |
136 | void *data) | 137 | void *data) |
137 | { | 138 | { |
138 | return request_irq(IRQ_GPIOB(26), detect_irq, IRQF_TRIGGER_FALLING | | 139 | return request_irq(gpio_to_irq(SD1_CD), detect_irq, |
139 | IRQF_TRIGGER_RISING, "sdhc1-card-detect", data); | 140 | IRQF_TRIGGER_FALLING | IRQF_TRIGGER_RISING, "sdhc1-card-detect", data); |
140 | } | 141 | } |
141 | 142 | ||
142 | static void mx27_3ds_sdhc1_exit(struct device *dev, void *data) | 143 | static void mx27_3ds_sdhc1_exit(struct device *dev, void *data) |
143 | { | 144 | { |
144 | free_irq(IRQ_GPIOB(26), data); | 145 | free_irq(gpio_to_irq(SD1_CD), data); |
145 | } | 146 | } |
146 | 147 | ||
147 | static const struct imxmmc_platform_data sdhc1_pdata __initconst = { | 148 | static const struct imxmmc_platform_data sdhc1_pdata __initconst = { |
@@ -275,7 +276,7 @@ static struct spi_board_info mx27_3ds_spi_devs[] __initdata = { | |||
275 | .bus_num = 1, | 276 | .bus_num = 1, |
276 | .chip_select = 0, /* SS0 */ | 277 | .chip_select = 0, /* SS0 */ |
277 | .platform_data = &mc13783_pdata, | 278 | .platform_data = &mc13783_pdata, |
278 | .irq = IRQ_GPIOC(14), | 279 | .irq = gpio_to_irq(PMIC_INT), |
279 | .mode = SPI_CS_HIGH, | 280 | .mode = SPI_CS_HIGH, |
280 | }, | 281 | }, |
281 | }; | 282 | }; |