Skip to content

Commit 40fa84e

Browse files
arndbjoergroedel
authored andcommitted
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: 5fd577c ("iommu/rockchip: Use OF_IOMMU to attach devices automatically") Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
1 parent a85894c commit 40fa84e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iommu/rockchip-iommu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,7 @@ static int rk_iommu_of_xlate(struct device *dev,
10981098
data->iommu = platform_get_drvdata(iommu_dev);
10991099
dev->archdata.iommu = data;
11001100

1101-
of_dev_put(iommu_dev);
1101+
platform_device_put(iommu_dev);
11021102

11031103
return 0;
11041104
}

0 commit comments

Comments
 (0)