Commit c59042ed authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Linus Walleij

gpio: dwapb: Drop of_match_ptr() & ACPI_PTR() calls

Since we always have a table of IDs compiled in, there is no use
for of_match_ptr() nor ACPI_PTR() call. Besides that it brings
a warning (depending on configuration):

.../gpio-dwapb.c:638:34: warning: ‘dwapb_of_match’ defined but not used [-Wunused-const-variable=]
  638 | static const struct of_device_id dwapb_of_match[] = {
      |                                  ^~~~~~~~~~~~~~

Get rid of them for good.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: default avatarSerge Semin <fancer.lancer@gmail.com>
Reviewed-by: default avatarSerge Semin <fancer.lancer@gmail.com>
Link: https://lore.kernel.org/r/20200415141534.31240-12-andriy.shevchenko@linux.intel.comSigned-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 4f344e86
...@@ -805,8 +805,8 @@ static struct platform_driver dwapb_gpio_driver = { ...@@ -805,8 +805,8 @@ static struct platform_driver dwapb_gpio_driver = {
.driver = { .driver = {
.name = DWAPB_DRIVER_NAME, .name = DWAPB_DRIVER_NAME,
.pm = &dwapb_gpio_pm_ops, .pm = &dwapb_gpio_pm_ops,
.of_match_table = of_match_ptr(dwapb_of_match), .of_match_table = dwapb_of_match,
.acpi_match_table = ACPI_PTR(dwapb_acpi_match), .acpi_match_table = dwapb_acpi_match,
}, },
.probe = dwapb_gpio_probe, .probe = dwapb_gpio_probe,
.remove = dwapb_gpio_remove, .remove = dwapb_gpio_remove,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment