diff mbox

[3/5] mmc: mxcmmc: constify mxcmci_devtype and fix build warning

Message ID 1363279254-22351-5-git-send-email-agust@denx.de (mailing list archive)
State New, archived
Headers show

Commit Message

Anatolij Gustschin March 14, 2013, 4:40 p.m. UTC
Fix:
drivers/mmc/host/mxcmmc.c: In function 'mxcmci_probe':
drivers/mmc/host/mxcmmc.c:1137:41: warning: initialization discards
'const' qualifier from pointer target type [enabled by default]

Signed-off-by: Anatolij Gustschin <agust@denx.de>
---
 drivers/mmc/host/mxcmmc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Comments

Anatolij Gustschin March 14, 2013, 6:15 p.m. UTC | #1
On Thu, 14 Mar 2013 17:40:52 +0100
Anatolij Gustschin <agust@denx.de> wrote:

> Fix:
> drivers/mmc/host/mxcmmc.c: In function 'mxcmci_probe':
> drivers/mmc/host/mxcmmc.c:1137:41: warning: initialization discards
> 'const' qualifier from pointer target type [enabled by default]
> 
> Signed-off-by: Anatolij Gustschin <agust@denx.de>
> ---
>  drivers/mmc/host/mxcmmc.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)

that one has been sent by accident, please ignore it.

Sorry for that.

Anatolij
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/mmc/host/mxcmmc.c b/drivers/mmc/host/mxcmmc.c
index dc25802..c0115e9 100644
--- a/drivers/mmc/host/mxcmmc.c
+++ b/drivers/mmc/host/mxcmmc.c
@@ -169,7 +169,7 @@  struct mxcmci_host {
 	struct mxcmci_reg_ops   *reg_ops;
 };
 
-static struct platform_device_id mxcmci_devtype[] = {
+static const struct platform_device_id mxcmci_devtype[] = {
 	{
 		.name = "imx21-mmc",
 		.driver_data = IMX21_MMC,
@@ -1091,7 +1091,7 @@  static int mxcmci_probe(struct platform_device *pdev)
 	host->reg_ops = &mxcmci_reg_ops;
 
 	if (of_id) {
-		struct platform_device_id *id_entry = of_id->data;
+		const struct platform_device_id *id_entry = of_id->data;
 		host->devtype = id_entry->driver_data;
 	} else {
 		host->devtype = pdev->id_entry->driver_data;