diff options
author | Alexander Shiyan <shc_work@mail.ru> | 2013-12-24 09:08:53 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-01-07 12:53:19 -0500 |
commit | e8b49e0712cb319d6cc732ed1e1433ef4df7b88e (patch) | |
tree | 8a59d13487a3f7651cefdecc72c311fc194ec1e8 /drivers/gpio | |
parent | 2111cad655e32d0ab39d440d26c3e2ce5ba5b802 (diff) |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-clps711x.c b/drivers/gpio/gpio-clps711x.c index 0924f20fa47f..d3550274b8f7 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) | |||
77 | return bgpio_remove(bgc); | 77 | return bgpio_remove(bgc); |
78 | } | 78 | } |
79 | 79 | ||
80 | static const struct of_device_id clps711x_gpio_ids[] = { | 80 | static const struct of_device_id __maybe_unused clps711x_gpio_ids[] = { |
81 | { .compatible = "cirrus,clps711x-gpio" }, | 81 | { .compatible = "cirrus,clps711x-gpio" }, |
82 | { } | 82 | { } |
83 | }; | 83 | }; |
@@ -87,7 +87,7 @@ static struct platform_driver clps711x_gpio_driver = { | |||
87 | .driver = { | 87 | .driver = { |
88 | .name = "clps711x-gpio", | 88 | .name = "clps711x-gpio", |
89 | .owner = THIS_MODULE, | 89 | .owner = THIS_MODULE, |
90 | .of_match_table = clps711x_gpio_ids, | 90 | .of_match_table = of_match_ptr(clps711x_gpio_ids), |
91 | }, | 91 | }, |
92 | .probe = clps711x_gpio_probe, | 92 | .probe = clps711x_gpio_probe, |
93 | .remove = clps711x_gpio_remove, | 93 | .remove = clps711x_gpio_remove, |