]> Git Repo - J-linux.git/commitdiff
iommu/omap: Use dev_get_drvdata()
authorKefeng Wang <[email protected]>
Tue, 23 Apr 2019 07:50:08 +0000 (15:50 +0800)
committerJoerg Roedel <[email protected]>
Fri, 26 Apr 2019 14:48:57 +0000 (16:48 +0200)
Using dev_get_drvdata directly.

Cc: Joerg Roedel <[email protected]>
Cc: [email protected]
Signed-off-by: Kefeng Wang <[email protected]>
Signed-off-by: Joerg Roedel <[email protected]>
drivers/iommu/omap-iommu.c

index d2fb347aa4ffcbe5885a3b083b431aa09b6d93d1..b16c711fc5fce825ebd47d0439161a551b3ad9c0 100644 (file)
@@ -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)
This page took 0.056427 seconds and 4 git commands to generate.