diff options
author | Julien Delbergue <j.delbergue.foss@gmail.com> | 2023-07-13 11:31:08 +0200 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2023-08-09 13:21:48 +0200 |
commit | de2067448d0ece6b774026cc05dcb6d4ebfd1e1a (patch) | |
tree | ab86a129e9fc8244837967d938a6578f99897d16 | |
parent | mmc: pxamci: Use devm_platform_get_and_ioremap_resource() (diff) | |
download | linux-de2067448d0ece6b774026cc05dcb6d4ebfd1e1a.tar.xz linux-de2067448d0ece6b774026cc05dcb6d4ebfd1e1a.zip |
mmc: davinci: Make SDIO irq truly optional
The following error is printed on Logic PD's DA850 EVM:
davinci_mmc 1c40000.mmc: error -ENXIO: IRQ index 1 not found
Depending on the board, the SDIO interrupt may not be present, so use
the correct function to reflect that and prevent logging an error.
Signed-off-by: Julien Delbergue <j.delbergue.foss@gmail.com>
Acked-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Link: https://lore.kernel.org/r/8b57db8d-1d3a-883e-eb8f-ddf15f19d823@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r-- | drivers/mmc/host/davinci_mmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/davinci_mmc.c b/drivers/mmc/host/davinci_mmc.c index 7138dfa065bf..fb686c0d171c 100644 --- a/drivers/mmc/host/davinci_mmc.c +++ b/drivers/mmc/host/davinci_mmc.c @@ -1257,7 +1257,7 @@ static int davinci_mmcsd_probe(struct platform_device *pdev) host->use_dma = use_dma; host->mmc_irq = irq; - host->sdio_irq = platform_get_irq(pdev, 1); + host->sdio_irq = platform_get_irq_optional(pdev, 1); if (host->use_dma) { ret = davinci_acquire_dma_channels(host); |