summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/maps/pxa2xx-flash.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2013-11-12 20:07:15 +0100
committerBrian Norris <computersforpeace@gmail.com>2014-01-03 11:22:08 -0800
commit7c4bb4f8f8ad6d3cc338d59c00f674a571ae7ca6 (patch)
tree6f3cb1a5dde6304452eb80466adcac29963663f9 /drivers/mtd/maps/pxa2xx-flash.c
parent76c930be3d4831b52d04aadc2522cfeeb7a6c789 (diff)
downloadlinux-7c4bb4f8f8ad6d3cc338d59c00f674a571ae7ca6.tar.bz2
mtd: remove superfluous name casts
map_info.name is "const char *" Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Cc: David Woodhouse <dwmw2@infradead.org> Cc: linux-mtd@lists.infradead.org Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/maps/pxa2xx-flash.c')
-rw-r--r--drivers/mtd/maps/pxa2xx-flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/maps/pxa2xx-flash.c b/drivers/mtd/maps/pxa2xx-flash.c
index d210d131fef2..63b52f7080fa 100644
--- a/drivers/mtd/maps/pxa2xx-flash.c
+++ b/drivers/mtd/maps/pxa2xx-flash.c
@@ -61,7 +61,7 @@ static int pxa2xx_flash_probe(struct platform_device *pdev)
if (!info)
return -ENOMEM;
- info->map.name = (char *) flash->name;
+ info->map.name = flash->name;
info->map.bankwidth = flash->width;
info->map.phys = res->start;
info->map.size = resource_size(res);