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 <[email protected]>
Cc: Dan Williams <[email protected]>
Cc: [email protected]
Signed-off-by: Yisheng Xie <[email protected]>
---
 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;
 
-- 
1.8.3.1

Reply via email to