summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/cmdlinepart.c
diff options
context:
space:
mode:
authorDavid Howells2008-07-08 18:09:03 +0200
committerDavid Woodhouse2008-07-11 19:24:38 +0200
commit36560d255b017dbcaefbf0f8fee7ad4dd1f0fe0a (patch)
tree167b8b3fef6d4ec2605c045558fe0e427d5cd723 /drivers/mtd/cmdlinepart.c
parent[MTD] [NOR] gen_probe: No debug message when debugging is disabled (diff)
downloadkernel-qcow2-linux-36560d255b017dbcaefbf0f8fee7ad4dd1f0fe0a.tar.gz
kernel-qcow2-linux-36560d255b017dbcaefbf0f8fee7ad4dd1f0fe0a.tar.xz
kernel-qcow2-linux-36560d255b017dbcaefbf0f8fee7ad4dd1f0fe0a.zip
[MTD] Fix const assignment in the MTD command line partitioning driver
Fix const to non-const pointer assignment in the MTD command line partitioning driver. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/cmdlinepart.c')
-rw-r--r--drivers/mtd/cmdlinepart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/cmdlinepart.c b/drivers/mtd/cmdlinepart.c
index 68782ab2f0de..71bc07f149b7 100644
--- a/drivers/mtd/cmdlinepart.c
+++ b/drivers/mtd/cmdlinepart.c
@@ -306,7 +306,7 @@ static int parse_cmdline_partitions(struct mtd_info *master,
unsigned long offset;
int i;
struct cmdline_mtd_partition *part;
- char *mtd_id = master->name;
+ const char *mtd_id = master->name;
/* parse command line */
if (!cmdline_parsed)