]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: renesas_sdhi: Do not use platform_get_irq() to count interrupts
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 2 Oct 2019 15:29:46 +0000 (17:29 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 3 Oct 2019 09:36:22 +0000 (11:36 +0200)
commit3765a13b3c9cb4bf3cf0a52e5f45518d990f3c70
tree77c9fbfbaf124c563b61726e309e3228da16a27b
parent83b4b06b7408ce798a220098fbeac6cb0a1db352
mmc: renesas_sdhi: Do not use platform_get_irq() to count interrupts

As platform_get_irq() now prints an error when the interrupt does not
exist, counting interrupts by looping until failure causes the printing
of scary messages like:

    renesas_sdhi_internal_dmac ee140000.sd: IRQ index 1 not found

Fix this by using the platform_irq_count() helper to avoid touching
non-existent interrupts.

Fixes: 682a742ed79d525d ("driver core: platform: Add an error message to platform_get_irq*()")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/renesas_sdhi_core.c