]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/rockchip: Don't use platform_get_irq to implicitly count irqs
authorHeiko Stuebner <heiko@sntech.de>
Wed, 25 Sep 2019 18:43:46 +0000 (20:43 +0200)
committerJoerg Roedel <jroedel@suse.de>
Tue, 15 Oct 2019 10:45:16 +0000 (12:45 +0200)
commit122b4782d155971dbba2b7916630f18a3b6de368
treee4452e62c0aa77e23d65b44859e91dd7f6c2d231
parent69379cd3c089028bd4488d21f7be2fce0d5c803a
iommu/rockchip: Don't use platform_get_irq to implicitly count irqs

Till now the Rockchip iommu driver walked through the irq list via
platform_get_irq() until it encountered an ENXIO error. With the
recent change to add a central error message, this always results
in such an error for each iommu on probe and shutdown.

To not confuse people, switch to platform_count_irqs() to get the
actual number of interrupts before walking through them.

Fixes: 682a742ed79d ("driver core: platform: Add an error message to platform_get_irq*()")
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/rockchip-iommu.c