diff mbox series

[01/26] mtd/maps/pxa2xx: use ioremap_cache insted of ioremap_cached

Message ID 20190817073253.27819-2-hch@lst.de
State Accepted
Headers show
Series [01/26] mtd/maps/pxa2xx: use ioremap_cache insted of ioremap_cached | expand

Commit Message

Christoph Hellwig Aug. 17, 2019, 7:32 a.m. UTC
pxa2xx-flash is the only user of ioremap_cached, which is an alias
for ioremap_cache anyway.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 drivers/mtd/maps/pxa2xx-flash.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Christoph Hellwig Sept. 2, 2019, 8:07 a.m. UTC | #1
Mtd maintainers, can you pick this one up for 5.4?

On Sat, Aug 17, 2019 at 09:32:28AM +0200, Christoph Hellwig wrote:
> pxa2xx-flash is the only user of ioremap_cached, which is an alias
> for ioremap_cache anyway.
> 
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> ---
>  drivers/mtd/maps/pxa2xx-flash.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/drivers/mtd/maps/pxa2xx-flash.c b/drivers/mtd/maps/pxa2xx-flash.c
> index cebb346877a9..7d96758a8f04 100644
> --- a/drivers/mtd/maps/pxa2xx-flash.c
> +++ b/drivers/mtd/maps/pxa2xx-flash.c
> @@ -68,8 +68,7 @@ static int pxa2xx_flash_probe(struct platform_device *pdev)
>  		       info->map.name);
>  		return -ENOMEM;
>  	}
> -	info->map.cached =
> -		ioremap_cached(info->map.phys, info->map.size);
> +	info->map.cached = ioremap_cache(info->map.phys, info->map.size);
>  	if (!info->map.cached)
>  		printk(KERN_WARNING "Failed to ioremap cached %s\n",
>  		       info->map.name);
> -- 
> 2.20.1
> 
> 
> _______________________________________________
> linux-riscv mailing list
> linux-riscv@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-riscv
---end quoted text---
Richard Weinberger Sept. 2, 2019, 8:31 a.m. UTC | #2
On Mon, Sep 2, 2019 at 10:07 AM Christoph Hellwig <hch@lst.de> wrote:
>
> Mtd maintainers, can you pick this one up for 5.4?

Sure. Queued for 5.4
diff mbox series

Patch

diff --git a/drivers/mtd/maps/pxa2xx-flash.c b/drivers/mtd/maps/pxa2xx-flash.c
index cebb346877a9..7d96758a8f04 100644
--- a/drivers/mtd/maps/pxa2xx-flash.c
+++ b/drivers/mtd/maps/pxa2xx-flash.c
@@ -68,8 +68,7 @@  static int pxa2xx_flash_probe(struct platform_device *pdev)
 		       info->map.name);
 		return -ENOMEM;
 	}
-	info->map.cached =
-		ioremap_cached(info->map.phys, info->map.size);
+	info->map.cached = ioremap_cache(info->map.phys, info->map.size);
 	if (!info->map.cached)
 		printk(KERN_WARNING "Failed to ioremap cached %s\n",
 		       info->map.name);