]> git.baikalelectronics.ru Git - kernel.git/commit
iommu: rockchip: fix building without CONFIG_OF
authorArnd Bergmann <arnd@arndb.de>
Wed, 4 Apr 2018 10:23:53 +0000 (12:23 +0200)
committerJoerg Roedel <jroedel@suse.de>
Thu, 3 May 2018 14:36:07 +0000 (16:36 +0200)
commitc9f99ba1eeb14798d5df057fe8e9cf00f5da32f5
tree2e7cea449beb07990ef81299ff4ba14ec21c1128
parent3644a5738f34aff40e4ec13db7f0d0fcd1ece462
iommu: rockchip: fix building without CONFIG_OF

We get a build error when compiling the iommu driver without CONFIG_OF:

drivers/iommu/rockchip-iommu.c: In function 'rk_iommu_of_xlate':
drivers/iommu/rockchip-iommu.c:1101:2: error: implicit declaration of function 'of_dev_put'; did you mean 'of_node_put'? [-Werror=implicit-function-declaration]

This replaces the of_dev_put() with the equivalent
platform_device_put().

Fixes: c1f545c18780 ("iommu/rockchip: Use OF_IOMMU to attach devices automatically")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/rockchip-iommu.c