linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mtd: mxc_nand: Fix compiler warnings
@ 2012-07-28  9:05 Dirk Behme
  2012-07-30  7:34 ` Uwe Kleine-König
  0 siblings, 1 reply; 7+ messages in thread
From: Dirk Behme @ 2012-07-28  9:05 UTC (permalink / raw)
  To: linux-arm-kernel

From: Dirk Behme <dirk.behme@googlemail.com>

Fix the compiler warnings

drivers/mtd/nand/mxc_nand.c:1267: warning: initialization discards qualifiers from pointer target type
drivers/mtd/nand/mxc_nand.c:1270: warning: initialization discards qualifiers from pointer target type
drivers/mtd/nand/mxc_nand.c:1273: warning: initialization discards qualifiers from pointer target type
drivers/mtd/nand/mxc_nand.c:1276: warning: initialization discards qualifiers from pointer target type

Signed-off-by: Dirk Behme <dirk.behme@googlemail.com>
---
 drivers/mtd/nand/mxc_nand.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c
index 6acc790..31b125a 100644
--- a/drivers/mtd/nand/mxc_nand.c
+++ b/drivers/mtd/nand/mxc_nand.c
@@ -1264,16 +1264,16 @@ static const struct mxc_nand_devtype_data imx51_nand_devtype_data = {
 static const struct of_device_id mxcnd_dt_ids[] = {
 	{
 		.compatible = "fsl,imx21-nand",
-		.data = &imx21_nand_devtype_data,
+		.data = (void *)&imx21_nand_devtype_data,
 	}, {
 		.compatible = "fsl,imx27-nand",
-		.data = &imx27_nand_devtype_data,
+		.data = (void *)&imx27_nand_devtype_data,
 	}, {
 		.compatible = "fsl,imx25-nand",
-		.data = &imx25_nand_devtype_data,
+		.data = (void *)&imx25_nand_devtype_data,
 	}, {
 		.compatible = "fsl,imx51-nand",
-		.data = &imx51_nand_devtype_data,
+		.data = (void *)&imx51_nand_devtype_data,
 	},
 	{ /* sentinel */ }
 };
-- 
1.7.7.4

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-08-18 11:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-28  9:05 [PATCH] mtd: mxc_nand: Fix compiler warnings Dirk Behme
2012-07-30  7:34 ` Uwe Kleine-König
2012-08-04 15:47   ` Dirk Behme
2012-08-05  8:39     ` Uwe Kleine-König
2012-08-05 10:56       ` Dirk Behme
2012-08-18  9:58       ` Dirk Behme
2012-08-18 11:43         ` Uwe Kleine-König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).