[v3,15/27] dmaengine: replace devm_ioremap_nocache with devm_ioremap

From: Xie Yisheng <hidden>
Date: 2017-12-23 11:09:07
Also in: lkml
Subsystem: altera msgdma ip core driver, dma generic offload engine subsystem, the rest · Maintainers: Olivier Dautricourt, Vinod Koul, Linus Torvalds

Default ioremap is ioremap_nocache, so devm_ioremap has the same
function with devm_ioremap_nocache, which can just be killed to
save the size of devres.o

This patch is to use use devm_ioremap instead of devm_ioremap_nocache,
which should not have any function change but prepare for killing
devm_ioremap_nocache.

Cc: Vinod Koul <redacted>
Cc: Dan Williams <redacted>
Cc: dmaengine@vger.kernel.org
Signed-off-by: Yisheng Xie <redacted>
---
 drivers/dma/altera-msgdma.c | 3 +--
 drivers/dma/sprd-dma.c      | 4 ++--
 2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/drivers/dma/altera-msgdma.c b/drivers/dma/altera-msgdma.c
index 55f9c62..8cae100 100644
--- a/drivers/dma/altera-msgdma.c
+++ b/drivers/dma/altera-msgdma.c
@@ -776,8 +776,7 @@ static int request_and_map(struct platform_device *pdev, const char *name,
 		return -EBUSY;
 	}
 
-	*ptr = devm_ioremap_nocache(device, region->start,
-				    resource_size(region));
+	*ptr = devm_ioremap(device, region->start, resource_size(region));
 	if (*ptr == NULL) {
 		dev_err(device, "ioremap_nocache of %s failed!", name);
 		return -ENOMEM;
diff --git a/drivers/dma/sprd-dma.c b/drivers/dma/sprd-dma.c
index b652071..54c215f 100644
--- a/drivers/dma/sprd-dma.c
+++ b/drivers/dma/sprd-dma.c
@@ -842,8 +842,8 @@ static int sprd_dma_probe(struct platform_device *pdev)
 	}
 
 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	sdev->glb_base = devm_ioremap_nocache(&pdev->dev, res->start,
-					      resource_size(res));
+	sdev->glb_base = devm_ioremap(&pdev->dev, res->start,
+				      resource_size(res));
 	if (!sdev->glb_base)
 		return -ENOMEM;
 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help