Browse Source

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 <jg1.han@samsung.com>
Reviewed-by: Michal Simek <monstr@monstr.eu>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Jingoo Han 11 years ago
parent
commit
9992bc95e1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/gpio/gpio-xilinx.c

+ 1 - 1
drivers/gpio/gpio-xilinx.c

@@ -289,7 +289,7 @@ static int xgpio_of_probe(struct device_node *np)
 	return 0;
 	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", },
 	{ .compatible = "xlnx,xps-gpio-1.00.a", },
 	{ /* end of list */ },
 	{ /* end of list */ },
 };
 };