From: Dirk Behme <dirk.behme@googlemail.com>
To: shijie8@gmail.com, linux-mtd@lists.infradead.org,
linux-arm-kernel@lists.infradead.org, shawn.guo@linaro.org
Cc: Dirk Behme <dirk.behme@googlemail.com>
Subject: [PATCH] mtd: mxc_nand: Fix compiler warnings
Date: Sat, 28 Jul 2012 11:05:10 +0200 [thread overview]
Message-ID: <1343466310-14584-1-git-send-email-dirk.behme@gmail.com> (raw)
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
next reply other threads:[~2012-07-28 9:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-28 9:05 Dirk Behme [this message]
2012-07-30 7:34 ` [PATCH] mtd: mxc_nand: Fix compiler warnings 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1343466310-14584-1-git-send-email-dirk.behme@gmail.com \
--to=dirk.behme@googlemail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-mtd@lists.infradead.org \
--cc=shawn.guo@linaro.org \
--cc=shijie8@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox