diff options
Diffstat (limited to 'arch/arm/mach-shmobile/board-ap4evb.c')
-rw-r--r-- | arch/arm/mach-shmobile/board-ap4evb.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/arm/mach-shmobile/board-ap4evb.c b/arch/arm/mach-shmobile/board-ap4evb.c index 5b9937c910ff..3cf0951caa2d 100644 --- a/arch/arm/mach-shmobile/board-ap4evb.c +++ b/arch/arm/mach-shmobile/board-ap4evb.c | |||
@@ -247,10 +247,7 @@ static struct platform_device smc911x_device = { | |||
247 | */ | 247 | */ |
248 | static int slot_cn7_get_cd(struct platform_device *pdev) | 248 | static int slot_cn7_get_cd(struct platform_device *pdev) |
249 | { | 249 | { |
250 | if (gpio_is_valid(GPIO_PORT41)) | 250 | return !gpio_get_value(GPIO_PORT41); |
251 | return !gpio_get_value(GPIO_PORT41); | ||
252 | else | ||
253 | return -ENXIO; | ||
254 | } | 251 | } |
255 | 252 | ||
256 | /* SH_MMCIF */ | 253 | /* SH_MMCIF */ |
@@ -308,6 +305,7 @@ static struct platform_device sh_mmcif_device = { | |||
308 | static struct sh_mobile_sdhi_info sdhi0_info = { | 305 | static struct sh_mobile_sdhi_info sdhi0_info = { |
309 | .dma_slave_tx = SHDMA_SLAVE_SDHI0_TX, | 306 | .dma_slave_tx = SHDMA_SLAVE_SDHI0_TX, |
310 | .dma_slave_rx = SHDMA_SLAVE_SDHI0_RX, | 307 | .dma_slave_rx = SHDMA_SLAVE_SDHI0_RX, |
308 | .tmio_caps = MMC_CAP_SDIO_IRQ, | ||
311 | }; | 309 | }; |
312 | 310 | ||
313 | static struct resource sdhi0_resources[] = { | 311 | static struct resource sdhi0_resources[] = { |
@@ -339,7 +337,7 @@ static struct sh_mobile_sdhi_info sdhi1_info = { | |||
339 | .dma_slave_rx = SHDMA_SLAVE_SDHI1_RX, | 337 | .dma_slave_rx = SHDMA_SLAVE_SDHI1_RX, |
340 | .tmio_ocr_mask = MMC_VDD_165_195, | 338 | .tmio_ocr_mask = MMC_VDD_165_195, |
341 | .tmio_flags = TMIO_MMC_WRPROTECT_DISABLE, | 339 | .tmio_flags = TMIO_MMC_WRPROTECT_DISABLE, |
342 | .tmio_caps = MMC_CAP_NEEDS_POLL, | 340 | .tmio_caps = MMC_CAP_NEEDS_POLL | MMC_CAP_SDIO_IRQ, |
343 | .get_cd = slot_cn7_get_cd, | 341 | .get_cd = slot_cn7_get_cd, |
344 | }; | 342 | }; |
345 | 343 | ||