diff options
Diffstat (limited to 'arch/arm/mach-imx/mach-mx27ads.c')
-rw-r--r-- | arch/arm/mach-imx/mach-mx27ads.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/arm/mach-imx/mach-mx27ads.c b/arch/arm/mach-imx/mach-mx27ads.c index 0228d2e07fe0..78b6bb5fcc6a 100644 --- a/arch/arm/mach-imx/mach-mx27ads.c +++ b/arch/arm/mach-imx/mach-mx27ads.c | |||
@@ -246,25 +246,25 @@ static const struct imx_fb_platform_data mx27ads_fb_data __initconst = { | |||
246 | static int mx27ads_sdhc1_init(struct device *dev, irq_handler_t detect_irq, | 246 | static int mx27ads_sdhc1_init(struct device *dev, irq_handler_t detect_irq, |
247 | void *data) | 247 | void *data) |
248 | { | 248 | { |
249 | return request_irq(IRQ_GPIOE(21), detect_irq, IRQF_TRIGGER_RISING, | 249 | return request_irq(gpio_to_irq(IMX_GPIO_NR(5, 21)), detect_irq, |
250 | "sdhc1-card-detect", data); | 250 | IRQF_TRIGGER_RISING, "sdhc1-card-detect", data); |
251 | } | 251 | } |
252 | 252 | ||
253 | static int mx27ads_sdhc2_init(struct device *dev, irq_handler_t detect_irq, | 253 | static int mx27ads_sdhc2_init(struct device *dev, irq_handler_t detect_irq, |
254 | void *data) | 254 | void *data) |
255 | { | 255 | { |
256 | return request_irq(IRQ_GPIOB(7), detect_irq, IRQF_TRIGGER_RISING, | 256 | return request_irq(gpio_to_irq(IMX_GPIO_NR(2, 7)), detect_irq, |
257 | "sdhc2-card-detect", data); | 257 | IRQF_TRIGGER_RISING, "sdhc2-card-detect", data); |
258 | } | 258 | } |
259 | 259 | ||
260 | static void mx27ads_sdhc1_exit(struct device *dev, void *data) | 260 | static void mx27ads_sdhc1_exit(struct device *dev, void *data) |
261 | { | 261 | { |
262 | free_irq(IRQ_GPIOE(21), data); | 262 | free_irq(gpio_to_irq(IMX_GPIO_NR(5, 21)), data); |
263 | } | 263 | } |
264 | 264 | ||
265 | static void mx27ads_sdhc2_exit(struct device *dev, void *data) | 265 | static void mx27ads_sdhc2_exit(struct device *dev, void *data) |
266 | { | 266 | { |
267 | free_irq(IRQ_GPIOB(7), data); | 267 | free_irq(gpio_to_irq(IMX_GPIO_NR(2, 7)), data); |
268 | } | 268 | } |
269 | 269 | ||
270 | static const struct imxmmc_platform_data sdhc1_pdata __initconst = { | 270 | static const struct imxmmc_platform_data sdhc1_pdata __initconst = { |