From: Jingoo Han Date: Wed, 7 May 2014 09:08:20 +0000 (+0900) Subject: gpio: xilinx: Make of_device_id array const X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9992bc95e1dcc4f2395fd5511683eaeb079facf7;p=linux-beck.git gpio: xilinx: Make of_device_id array const Make of_device_id array const, because all OF functions handle it as const. Signed-off-by: Jingoo Han Reviewed-by: Michal Simek Signed-off-by: Linus Walleij --- diff --git a/drivers/gpio/gpio-xilinx.c b/drivers/gpio/gpio-xilinx.c index 792a05ad4649..12481867daf1 100644 --- a/drivers/gpio/gpio-xilinx.c +++ b/drivers/gpio/gpio-xilinx.c @@ -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 */ }, };