From: Uwe Kleine-König Date: Mon, 21 May 2012 19:57:39 +0000 (+0200) Subject: mmc/omap_hsmmc: add a const qualifier X-Git-Tag: next-20120725~11^2^2^2~13 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=78873211b7295968426442a3599bbb332da8eb44;p=karo-tx-linux.git mmc/omap_hsmmc: add a const qualifier This prepares *of_device_id.data becoming const. Without this change the following warning would occur: drivers/mmc/host/omap_hsmmc.c: In function 'omap_hsmmc_probe': drivers/mmc/host/omap_hsmmc.c:1808: warning: initialization discards qualifiers from pointer target type Acked-by: Venkatraman S Signed-off-by: Uwe Kleine-König --- diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index 389a3eedfc24..5bcd0436844c 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c @@ -1805,7 +1805,7 @@ static int __devinit omap_hsmmc_probe(struct platform_device *pdev) if (match) { pdata = of_get_hsmmc_pdata(&pdev->dev); if (match->data) { - u16 *offsetp = match->data; + const u16 *offsetp = match->data; pdata->reg_offset = *offsetp; } }