diff options
author | Robin Murphy <robin.murphy@arm.com> | 2016-09-12 17:13:52 +0100 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2016-09-16 09:34:19 +0100 |
commit | d6fc5d977671d16535de66645f83a1bd07e1317d (patch) | |
tree | 608fa34ecbda7ecac83972491c621b295e835896 /kernel/dma.c | |
parent | f80cd885fcdd05dff769d62a116313927a03d480 (diff) |
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>
Diffstat (limited to 'kernel/dma.c')
0 files changed, 0 insertions, 0 deletions