mtd: pxa2xx: Use ioremap_cache insted of ioremap_cached

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>
Signed-off-by: Richard Weinberger <richard@nod.at>
This commit is contained in:
Christoph Hellwig 2019-08-17 09:32:28 +02:00 committed by Richard Weinberger
parent 6db5506f05
commit 97ef08ae27
1 changed files with 1 additions and 2 deletions

View File

@ -68,8 +68,7 @@ static int pxa2xx_flash_probe(struct platform_device *pdev)
info->map.name); info->map.name);
return -ENOMEM; return -ENOMEM;
} }
info->map.cached = info->map.cached = ioremap_cache(info->map.phys, info->map.size);
ioremap_cached(info->map.phys, info->map.size);
if (!info->map.cached) if (!info->map.cached)
printk(KERN_WARNING "Failed to ioremap cached %s\n", printk(KERN_WARNING "Failed to ioremap cached %s\n",
info->map.name); info->map.name);