]> git.karo-electronics.de Git - linux-beck.git/commitdiff
gpio: mvebu: Make of_device_id array const
authorJingoo Han <jg1.han@samsung.com>
Wed, 7 May 2014 09:06:08 +0000 (18:06 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 9 May 2014 09:00:42 +0000 (11:00 +0200)
Make of_device_id array const, because all OF functions
handle it as const.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mvebu.c

index 4d398ff83ad0da2cec464362d036d663314854ad..8018d308226abbf540904867ed24daa6b7da1383 100644 (file)
@@ -535,7 +535,7 @@ static void mvebu_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip)
 #define mvebu_gpio_dbg_show NULL
 #endif
 
-static struct of_device_id mvebu_gpio_of_match[] = {
+static const struct of_device_id mvebu_gpio_of_match[] = {
        {
                .compatible = "marvell,orion-gpio",
                .data       = (void *) MVEBU_GPIO_SOC_VARIANT_ORION,