From: Uwe Kleine-König Date: Mon, 21 May 2012 19:57:39 +0000 (+0200) Subject: gpio/gpio-omap.c: add a const qualifier X-Git-Tag: next-20120725~11^2^2^2~18 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=737d895e90d4a9e227ff1d5afeddc332b9306323;p=karo-tx-linux.git gpio/gpio-omap.c: add a const qualifier This prepares *of_device_id.data becoming const. Without this change the following warning would occur: drivers/gpio/gpio-omap.c: In function 'omap_gpio_probe': drivers/gpio/gpio-omap.c:1060: warning: assignment discards qualifiers from pointer target type Signed-off-by: Uwe Kleine-König --- diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c index c4ed1722734c..019cb7b0fa0a 100644 --- a/drivers/gpio/gpio-omap.c +++ b/drivers/gpio/gpio-omap.c @@ -1050,7 +1050,7 @@ static int __devinit omap_gpio_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; struct device_node *node = dev->of_node; const struct of_device_id *match; - struct omap_gpio_platform_data *pdata; + const struct omap_gpio_platform_data *pdata; struct resource *res; struct gpio_bank *bank; int ret = 0;