summaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2013-12-24 18:08:53 +0400
committerLinus Walleij <linus.walleij@linaro.org>2014-01-07 18:53:19 +0100
commite8b49e0712cb319d6cc732ed1e1433ef4df7b88e (patch)
tree8a59d13487a3f7651cefdecc72c311fc194ec1e8 /drivers/gpio
parent2111cad655e32d0ab39d440d26c3e2ce5ba5b802 (diff)
downloadop-kernel-dev-e8b49e0712cb319d6cc732ed1e1433ef4df7b88e.zip
op-kernel-dev-e8b49e0712cb319d6cc732ed1e1433ef4df7b88e.tar.gz
gpio: clps711x: Use of_match_ptr()
There is no reason to keep the OF data if the driver was compiled without DT support. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpio-clps711x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-clps711x.c b/drivers/gpio/gpio-clps711x.c
index 0924f20..d355027 100644
--- a/drivers/gpio/gpio-clps711x.c
+++ b/drivers/gpio/gpio-clps711x.c
@@ -77,7 +77,7 @@ static int clps711x_gpio_remove(struct platform_device *pdev)
return bgpio_remove(bgc);
}
-static const struct of_device_id clps711x_gpio_ids[] = {
+static const struct of_device_id __maybe_unused clps711x_gpio_ids[] = {
{ .compatible = "cirrus,clps711x-gpio" },
{ }
};
@@ -87,7 +87,7 @@ static struct platform_driver clps711x_gpio_driver = {
.driver = {
.name = "clps711x-gpio",
.owner = THIS_MODULE,
- .of_match_table = clps711x_gpio_ids,
+ .of_match_table = of_match_ptr(clps711x_gpio_ids),
},
.probe = clps711x_gpio_probe,
.remove = clps711x_gpio_remove,
OpenPOWER on IntegriCloud