linux-samsung-soc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/6] iommu/omap: convert to devm_platform_ioremap_resource
@ 2019-12-23 18:59 Yangtao Li
  2019-12-23 18:59 ` [PATCH] virtio-mmio: " Yangtao Li
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Yangtao Li @ 2019-12-23 18:59 UTC (permalink / raw)
  To: m.szyprowski, joro, kgene, krzk, matthias.bgg, agross,
	bjorn.andersson, robdclark, heiko, mst, jasowang, iommu,
	linux-arm-kernel, linux-samsung-soc, linux-kernel,
	linux-mediatek, linux-arm-msm, linux-rockchip, virtualization
  Cc: Yangtao Li

Use devm_platform_ioremap_resource() to simplify code.

Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
---
 drivers/iommu/omap-iommu.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/iommu/omap-iommu.c b/drivers/iommu/omap-iommu.c
index be551cc34be4..297c1be7ecb0 100644
--- a/drivers/iommu/omap-iommu.c
+++ b/drivers/iommu/omap-iommu.c
@@ -1175,7 +1175,6 @@ static int omap_iommu_probe(struct platform_device *pdev)
 	int err = -ENODEV;
 	int irq;
 	struct omap_iommu *obj;
-	struct resource *res;
 	struct device_node *of = pdev->dev.of_node;
 	struct orphan_dev *orphan_dev, *tmp;
 
@@ -1218,8 +1217,7 @@ static int omap_iommu_probe(struct platform_device *pdev)
 	spin_lock_init(&obj->iommu_lock);
 	spin_lock_init(&obj->page_table_lock);
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	obj->regbase = devm_ioremap_resource(obj->dev, res);
+	obj->regbase = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(obj->regbase))
 		return PTR_ERR(obj->regbase);
 
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-12-23 19:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-23 18:59 [PATCH 1/6] iommu/omap: convert to devm_platform_ioremap_resource Yangtao Li
2019-12-23 18:59 ` [PATCH] virtio-mmio: " Yangtao Li
2019-12-23 19:00   ` Frank Lee
2019-12-23 18:59 ` [PATCH 2/6] iommu/exynos: " Yangtao Li
2019-12-23 18:59 ` [PATCH 3/6] iommu/qcom: " Yangtao Li
2019-12-23 18:59 ` [PATCH 4/6] iommu/ipmmu-vmsa: " Yangtao Li
2019-12-23 18:59 ` [PATCH 5/6] iommu/mediatek: " Yangtao Li
2019-12-23 18:59 ` [PATCH 6/6] iommu/rockchip: " Yangtao Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).