diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2012-05-21 15:57:39 -0400 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2012-09-11 02:56:54 -0400 |
commit | efc9b736c4477df7ff3ce403bca66846d21458d5 (patch) | |
tree | 3181e0c5d44f265a4ac33c54cb2a8725b3deed5a | |
parent | 215e691c2ac9104dd6dfbdd291366ad4c202b7b6 (diff) |
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 <svenkatr@ti.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
-rw-r--r-- | drivers/mmc/host/omap_hsmmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index 3a09f93cc3b6..e975d3ecccc7 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c | |||
@@ -1782,7 +1782,7 @@ static int __devinit omap_hsmmc_probe(struct platform_device *pdev) | |||
1782 | if (match) { | 1782 | if (match) { |
1783 | pdata = of_get_hsmmc_pdata(&pdev->dev); | 1783 | pdata = of_get_hsmmc_pdata(&pdev->dev); |
1784 | if (match->data) { | 1784 | if (match->data) { |
1785 | u16 *offsetp = match->data; | 1785 | const u16 *offsetp = match->data; |
1786 | pdata->reg_offset = *offsetp; | 1786 | pdata->reg_offset = *offsetp; |
1787 | } | 1787 | } |
1788 | } | 1788 | } |