OSDN Git Service

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)
commit2f8c7f2e76bf040fcdaa2b4f4c2b9ef3b6e4ed25
tree3b415f714fbd859bfdcf936cd8004f384854806f
parent94c793accacdb0d33c1df66f3b324eec96d26e58
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: f2e3a5f557ad ("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