]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
gpio: xilinx: Make of_device_id array const
authorJingoo Han <jg1.han@samsung.com>
Wed, 7 May 2014 09:08:20 +0000 (18:08 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 9 May 2014 09:03:03 +0000 (11:03 +0200)
Make of_device_id array const, because all OF functions
handle it as const.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Reviewed-by: Michal Simek <monstr@monstr.eu>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-xilinx.c

index 792a05ad46497126e39c4ed23bc240bf3b63e66b..12481867daf11e8fa580df58e266225d9e332ade 100644 (file)
@@ -289,7 +289,7 @@ static int xgpio_of_probe(struct device_node *np)
        return 0;
 }
 
-static struct of_device_id xgpio_of_match[] = {
+static const struct of_device_id xgpio_of_match[] = {
        { .compatible = "xlnx,xps-gpio-1.00.a", },
        { /* end of list */ },
 };