Re: [Patch v2 06/10] iommu: using dev_get_drvdata directly

From: Joerg Roedel
Date: Thu Jul 04 2019 - 04:12:52 EST


On Thu, Jul 04, 2019 at 10:36:20AM +0800, Fuqian Huang wrote:
> #define to_iommu(dev) \
> - ((struct omap_iommu *)platform_get_drvdata(to_platform_device(dev)))
> + ((struct omap_iommu *)dev_get_drvdata(dev))

A similar change is already queued for v5.3.