iommu/rockchip: Make clock handling optional
authorHeiko Stuebner <heiko@sntech.de>
Tue, 17 Apr 2018 12:09:15 +0000 (14:09 +0200)
committerJoerg Roedel <jroedel@suse.de>
Thu, 3 May 2018 14:32:10 +0000 (16:32 +0200)
commit0bac3e9e34fca61582947e53fa3e781b1a334739
tree3b415f714fbd859bfdcf936cd8004f384854806f
parent658d5056f674b1a059d5b9969af49ef2738ec197
iommu/rockchip: Make clock handling optional

iommu clocks are optional, so the driver should not fail if they are not
present. Instead just set the number of clocks to 0, which the clk-blk APIs
can handle just fine.

Fixes: 4b2b9630035d ("iommu/rockchip: Control clocks needed to access the IOMMU")
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Tested-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/rockchip-iommu.c