Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit efc9b736 authored by Uwe Kleine-König's avatar Uwe Kleine-König
Browse files

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: default avatarVenkatraman S <svenkatr@ti.com>
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
parent 215e691c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1782,7 +1782,7 @@ static int __devinit omap_hsmmc_probe(struct platform_device *pdev)
	if (match) {
	if (match) {
		pdata = of_get_hsmmc_pdata(&pdev->dev);
		pdata = of_get_hsmmc_pdata(&pdev->dev);
		if (match->data) {
		if (match->data) {
			u16 *offsetp = match->data;
			const u16 *offsetp = match->data;
			pdata->reg_offset = *offsetp;
			pdata->reg_offset = *offsetp;
		}
		}
	}
	}