iommu/rockchip: Use OF_IOMMU to attach devices automatically
authorJeffy Chen <jeffy.chen@rock-chips.com>
Fri, 23 Mar 2018 07:38:11 +0000 (15:38 +0800)
committerJoerg Roedel <jroedel@suse.de>
Thu, 29 Mar 2018 10:22:28 +0000 (12:22 +0200)
commit5fd577c3eac3bdb9aebfec01e9b3d7f07a14f2dd
tree5e79535085ecbbcdcce2d54da229f45eddc1467c
parent9176a303d971dc0fb35469c531c0d263667d2277
iommu/rockchip: Use OF_IOMMU to attach devices automatically

Converts the rockchip-iommu driver to use the OF_IOMMU infrastructure,
which allows attaching master devices to their IOMMUs automatically
according to DT properties.

Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/rockchip-iommu.c