diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2019-10-16 16:26:01 +0200 |
---|---|---|
committer | Geert Uytterhoeven <geert+renesas@glider.be> | 2019-11-01 13:42:51 +0100 |
commit | ad7fe1a1a35994a201497443b5140bf54b074cca (patch) | |
tree | f3a402635d4c3e2c7cb31a919926b2cdca85e57e /drivers/media/dvb-frontends/s5h1420.h | |
parent | f846d1e704f2d07a7f359f65eac2c8cac565db35 (diff) | |
download | linux-ad7fe1a1a35994a201497443b5140bf54b074cca.tar.bz2 |
pinctrl: sh-pfc: 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:
sh-pfc e6060000.pin-controller: IRQ index 0 not found
Fix this by using the platform_irq_count() helper instead.
Fixes: 7723f4c5ecdb8d83 ("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: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Link: https://lore.kernel.org/r/20191016142601.28255-1-geert+renesas@glider.be
Diffstat (limited to 'drivers/media/dvb-frontends/s5h1420.h')
0 files changed, 0 insertions, 0 deletions