summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-05-07 11:08:20 +0200
committerLinus Walleij <linus.walleij@linaro.org>2014-05-09 11:03:03 +0200
commit9992bc95e1dcc4f2395fd5511683eaeb079facf7 (patch)
tree172fca58e23fb12c109b47bc49f26a129eea5bae /drivers
parentgpio: tegra: Make of_device_id array const (diff)
downloadlinux-9992bc95e1dcc4f2395fd5511683eaeb079facf7.tar.xz
linux-9992bc95e1dcc4f2395fd5511683eaeb079facf7.zip
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpio/gpio-xilinx.c2
1 files changed, 1 insertions, 1 deletions
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 */ },
};