iommu/rockchip: make clock handling optional
From: Heiko Stuebner <heiko@...> Date: Mon, 9 Apr 2018 23:01:35 +0200
Commit-Message
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@...> Reviewed-by: Robin Murphy <robin.murphy@...>
Patch-Comment
changes in v2: - keep it required in the binding for future variants but optional in the code for backwards compatiblity - follow Robin Murphy's beautification suggestion As the original changes breaks a lot of display support in 4.17-rc1, this should abviously go in as fix into 4.17. drivers/iommu/rockchip-iommu.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
Statistics
- 8 lines added
- 1 lines removed