Revert "mtd: make mtd_partition.name const"

This reverts 'commit 26a6d240e2a1 ("mtd: make
mtd_partition.name const")'. This is needed to fix the
compilation issue with msm_qpic_nand driver which makes
changes to mtd partition name.

Change-Id: Ic10df9c29d08d3df5df351f33e84a2c8e5158b43
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
diff --git a/drivers/mtd/ofpart.c b/drivers/mtd/ofpart.c
index ede407d..2312412 100644
--- a/drivers/mtd/ofpart.c
+++ b/drivers/mtd/ofpart.c
@@ -112,7 +112,7 @@
 		partname = of_get_property(pp, "label", &len);
 		if (!partname)
 			partname = of_get_property(pp, "name", &len);
-		parts[i].name = partname;
+		parts[i].name = (char *)partname;
 
 		if (of_get_property(pp, "read-only", &len))
 			parts[i].mask_flags |= MTD_WRITEABLE;
@@ -186,7 +186,7 @@
 		if (names && (plen > 0)) {
 			int len = strlen(names) + 1;
 
-			parts[i].name = names;
+			parts[i].name = (char *)names;
 			plen -= len;
 			names += len;
 		} else {