[PATCH 1/4] mtd: m25p80: explicitly cast name pointer
Lucas Stach
dev at lynxeye.de
Fri Jun 26 11:59:20 PDT 2015
Fixes:
drivers/mtd/devices/m25p80.c: In function 'm25p_probe':
drivers/mtd/devices/m25p80.c:271:14: warning:
assignment discards 'const' qualifier from pointer target type [enabled by default]
Signed-off-by: Lucas Stach <dev at lynxeye.de>
---
drivers/mtd/devices/m25p80.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
index c941767..c2e481e 100644
--- a/drivers/mtd/devices/m25p80.c
+++ b/drivers/mtd/devices/m25p80.c
@@ -268,7 +268,7 @@ static int m25p_probe(struct device_d *dev)
else if (data && data->name)
flash_name = data->name;
else if (dev->id_entry)
- flash_name = dev->id_entry->name;
+ flash_name = (char *)dev->id_entry->name;
else
flash_name = NULL; /* auto-detect */
--
2.1.0
More information about the barebox
mailing list