]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
iommu/arm-smmu: Streamline SMMU data lookups
authorRobin Murphy <robin.murphy@arm.com>
Mon, 12 Sep 2016 16:13:52 +0000 (17:13 +0100)
committerWill Deacon <will.deacon@arm.com>
Fri, 16 Sep 2016 08:34:19 +0000 (09:34 +0100)
commitd6fc5d977671d16535de66645f83a1bd07e1317d
tree608fa34ecbda7ecac83972491c621b295e835896
parentf80cd885fcdd05dff769d62a116313927a03d480
iommu/arm-smmu: Streamline SMMU data lookups

Simplify things somewhat by stashing our arm_smmu_device instance in
drvdata, so that it's readily available to our driver model callbacks.
Then we can excise the private list entirely, since the driver core
already has a perfectly good list of SMMU devices we can use in the one
instance we actually need to. Finally, make a further modest code saving
with the relatively new of_device_get_match_data() helper.

Tested-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/arm-smmu.c