[MTD] Fix const assignment in the MTD command line partitioning driver

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Fri Jul 11 13:59:02 EDT 2008


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=36560d255b017dbcaefbf0f8fee7ad4dd1f0fe0a
Commit:     36560d255b017dbcaefbf0f8fee7ad4dd1f0fe0a
Parent:     3a3688b6af103e2c86a7cfc2050988655e184ecc
Author:     David Howells <dhowells at redhat.com>
AuthorDate: Tue Jul 8 17:09:03 2008 +0100
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Fri Jul 11 18:24:38 2008 +0100

    [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 at redhat.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/cmdlinepart.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/cmdlinepart.c b/drivers/mtd/cmdlinepart.c
index 68782ab..71bc07f 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)



More information about the linux-mtd-cvs mailing list