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@...>
Patch-Comment
drivers/iommu/rockchip-iommu.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
Statistics
- 6 lines added
- 2 lines removed