Skip to content

Commit

Permalink
iommu/omap: Use dev_get_drvdata()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kefeng Wang authored and Joerg Roedel committed Apr 26, 2019
1 parent 085b775 commit 6e8b566
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/iommu/omap-iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6e8b566

Please sign in to comment.