]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/ipmmu-vmsa: Only call platform_get_irq() when interrupt is mandatory
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 1 Oct 2019 18:06:22 +0000 (20:06 +0200)
committerJoerg Roedel <jroedel@suse.de>
Tue, 15 Oct 2019 11:00:43 +0000 (13:00 +0200)
commitcd0aa2f1523e5d075a1df3363023b72a91276459
tree154d8e483f1bea63f1470ccc1163e86e4de48cd8
parent5a24850fb01971a16f2b4e8e522c1aeecc109b2f
iommu/ipmmu-vmsa: Only call platform_get_irq() when interrupt is mandatory

As platform_get_irq() now prints an error when the interrupt does not
exist, calling it gratuitously causes scary messages like:

    ipmmu-vmsa e6740000.mmu: IRQ index 0 not found

Fix this by moving the call to platform_get_irq() down, where the
existence of the interrupt is mandatory.

Fixes: 067159824b49c1e9 ("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>
Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/ipmmu-vmsa.c