mmc: davinci: Make SDIO irq truly optional
authorJulien Delbergue <j.delbergue.foss@gmail.com>
Thu, 13 Jul 2023 09:31:08 +0000 (11:31 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 9 Aug 2023 11:21:48 +0000 (13:21 +0200)
commitde2067448d0ece6b774026cc05dcb6d4ebfd1e1a
treeab86a129e9fc8244837967d938a6578f99897d16
parentc89a869b67dc6c22e1d967df7bd6826fc81413a5
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>
drivers/mmc/host/davinci_mmc.c