gpio: lpc32xx: Make of_device_id array const
authorJingoo Han <jg1.han@samsung.com>
Tue, 3 Jun 2014 12:09:02 +0000 (21:09 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 19 Jun 2014 07:31:16 +0000 (09:31 +0200)
Make of_device_id array const, because all OF functions handle
it as const.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-By: Roland Stigge <stigge@antcom.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-lpc32xx.c

index 225344d6640478e230ff04ec15825507f5f59366..b9b9799b368b5d83ef9b381a56ebe4ced00c908d 100644 (file)
@@ -560,7 +560,7 @@ static int lpc32xx_gpio_probe(struct platform_device *pdev)
 }
 
 #ifdef CONFIG_OF
-static struct of_device_id lpc32xx_gpio_of_match[] = {
+static const struct of_device_id lpc32xx_gpio_of_match[] = {
        { .compatible = "nxp,lpc3220-gpio", },
        { },
 };