Commit 3e174049 authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Thomas Gleixner

[MTD] maps/plat-ram: Avoid gcc 4.0 warning

The assignement of a "const char *" to a "char *" variable
is emitting a warning with gcc 4.0. We cannot change
mtd->name to "const char *" as we have dynamic assignements
of the name. So casting is the correct solution here
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 868801e5
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* *
* Generic platfrom device based RAM map * Generic platfrom device based RAM map
* *
* $Id: plat-ram.c,v 1.4 2005/10/10 00:51:26 bjd Exp $ * $Id: plat-ram.c,v 1.6 2005/11/07 00:52:24 gleixner Exp $
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
...@@ -177,7 +177,7 @@ static int platram_probe(struct device *dev) ...@@ -177,7 +177,7 @@ static int platram_probe(struct device *dev)
info->map.phys = res->start; info->map.phys = res->start;
info->map.size = (res->end - res->start) + 1; info->map.size = (res->end - res->start) + 1;
info->map.name = pdata->mapname != NULL ? pdata->mapname : pd->name; info->map.name = pdata->mapname != NULL ? pdata->mapname : (char *)pd->name;
info->map.bankwidth = pdata->bankwidth; info->map.bankwidth = pdata->bankwidth;
/* register our usage of the memory area */ /* register our usage of the memory area */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment