diff options
Diffstat (limited to 'arch/arm/mach-imx/mx31lite-db.c')
-rw-r--r-- | arch/arm/mach-imx/mx31lite-db.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/arm/mach-imx/mx31lite-db.c b/arch/arm/mach-imx/mx31lite-db.c index bf0fb87946ba..83d17d9e0bc8 100644 --- a/arch/arm/mach-imx/mx31lite-db.c +++ b/arch/arm/mach-imx/mx31lite-db.c | |||
@@ -116,7 +116,8 @@ static int mxc_mmc1_init(struct device *dev, | |||
116 | gpio_direction_input(gpio_det); | 116 | gpio_direction_input(gpio_det); |
117 | gpio_direction_input(gpio_wp); | 117 | gpio_direction_input(gpio_wp); |
118 | 118 | ||
119 | ret = request_irq(IOMUX_TO_IRQ(MX31_PIN_DCD_DCE1), detect_irq, | 119 | ret = request_irq(gpio_to_irq(IOMUX_TO_GPIO(MX31_PIN_DCD_DCE1)), |
120 | detect_irq, | ||
120 | IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING, | 121 | IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING, |
121 | "MMC detect", data); | 122 | "MMC detect", data); |
122 | if (ret) | 123 | if (ret) |
@@ -137,7 +138,7 @@ static void mxc_mmc1_exit(struct device *dev, void *data) | |||
137 | { | 138 | { |
138 | gpio_free(gpio_det); | 139 | gpio_free(gpio_det); |
139 | gpio_free(gpio_wp); | 140 | gpio_free(gpio_wp); |
140 | free_irq(IOMUX_TO_IRQ(MX31_PIN_DCD_DCE1), data); | 141 | free_irq(gpio_to_irq(IOMUX_TO_GPIO(MX31_PIN_DCD_DCE1)), data); |
141 | } | 142 | } |
142 | 143 | ||
143 | static const struct imxmmc_platform_data mmc_pdata __initconst = { | 144 | static const struct imxmmc_platform_data mmc_pdata __initconst = { |
@@ -191,6 +192,6 @@ void __init mx31lite_db_init(void) | |||
191 | imx31_add_mxc_mmc(0, &mmc_pdata); | 192 | imx31_add_mxc_mmc(0, &mmc_pdata); |
192 | imx31_add_spi_imx0(&spi0_pdata); | 193 | imx31_add_spi_imx0(&spi0_pdata); |
193 | gpio_led_register_device(-1, &litekit_led_platform_data); | 194 | gpio_led_register_device(-1, &litekit_led_platform_data); |
194 | imx31_add_imx2_wdt(NULL); | 195 | imx31_add_imx2_wdt(); |
195 | imx31_add_mxc_rtc(NULL); | 196 | imx31_add_mxc_rtc(); |
196 | } | 197 | } |