summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorKefeng Wang <wangkefeng.wang@huawei.com>2019-04-23 10:50:08 +0300
committerJoerg Roedel <jroedel@suse.de>2019-04-26 17:48:57 +0300
commit6e8b566806b7a8788dfde59b88ed79faa422fbaf (patch)
treee233e2ebbdbb21f42c074ef8073918bb52f87bf7 /drivers
parent085b7755808aa11f78ab9377257e1dad2e6fa4bb (diff)
downloadlinux-6e8b566806b7a8788dfde59b88ed79faa422fbaf.tar.xz
iommu/omap: Use dev_get_drvdata()
Using dev_get_drvdata directly. Cc: Joerg Roedel <joro@8bytes.org> Cc: iommu@lists.linux-foundation.org Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/iommu/omap-iommu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/iommu/omap-iommu.c b/drivers/iommu/omap-iommu.c
index d2fb347aa4ff..b16c711fc5fc 100644
--- a/drivers/iommu/omap-iommu.c
+++ b/drivers/iommu/omap-iommu.c
@@ -38,8 +38,7 @@
static const struct iommu_ops omap_iommu_ops;
-#define to_iommu(dev) \
- ((struct omap_iommu *)platform_get_drvdata(to_platform_device(dev)))
+#define to_iommu(dev) ((struct omap_iommu *)dev_get_drvdata(dev))
/* bitmap of the page sizes currently supported */
#define OMAP_IOMMU_PGSIZES (SZ_4K | SZ_64K | SZ_1M | SZ_16M)