diff options
author | Alexander Shiyan <shc_work@mail.ru> | 2013-12-24 18:08:53 +0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-01-07 18:53:19 +0100 |
commit | e8b49e0712cb319d6cc732ed1e1433ef4df7b88e (patch) | |
tree | 8a59d13487a3f7651cefdecc72c311fc194ec1e8 /drivers | |
parent | 2111cad655e32d0ab39d440d26c3e2ce5ba5b802 (diff) | |
download | linux-stable-e8b49e0712cb319d6cc732ed1e1433ef4df7b88e.tar.gz linux-stable-e8b49e0712cb319d6cc732ed1e1433ef4df7b88e.tar.bz2 linux-stable-e8b49e0712cb319d6cc732ed1e1433ef4df7b88e.zip |
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')
-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) 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, |