summaryrefslogtreecommitdiff
path: root/drivers/mtd/maps/sun_uflash.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2013-11-12 23:07:15 +0400
committerBrian Norris <computersforpeace@gmail.com>2014-01-03 23:22:08 +0400
commit7c4bb4f8f8ad6d3cc338d59c00f674a571ae7ca6 (patch)
tree6f3cb1a5dde6304452eb80466adcac29963663f9 /drivers/mtd/maps/sun_uflash.c
parent76c930be3d4831b52d04aadc2522cfeeb7a6c789 (diff)
downloadlinux-7c4bb4f8f8ad6d3cc338d59c00f674a571ae7ca6.tar.xz
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/sun_uflash.c')
-rw-r--r--drivers/mtd/maps/sun_uflash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/maps/sun_uflash.c b/drivers/mtd/maps/sun_uflash.c
index d467f3b11c96..39cc4181f025 100644
--- a/drivers/mtd/maps/sun_uflash.c
+++ b/drivers/mtd/maps/sun_uflash.c
@@ -75,7 +75,7 @@ int uflash_devinit(struct platform_device *op, struct device_node *dp)
up->name = of_get_property(dp, "model", NULL);
if (up->name && 0 < strlen(up->name))
- up->map.name = (char *)up->name;
+ up->map.name = up->name;
up->map.phys = op->resource[0].start;