Commit 74910e15 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Linus Walleij

gpio: pca953x: Drop unneeded ACPI_PTR()

ACPI_PTR() becomes a no-op when !CONFIG_ACPI. This is not needed since
we always have ID table enabled. Moreover, in the mentioned case compiler
will complain about defined but not used variable.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20200520211916.25727-3-andriy.shevchenko@linux.intel.comSigned-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 76bbea9a
...@@ -1176,7 +1176,7 @@ static struct i2c_driver pca953x_driver = { ...@@ -1176,7 +1176,7 @@ static struct i2c_driver pca953x_driver = {
.name = "pca953x", .name = "pca953x",
.pm = &pca953x_pm_ops, .pm = &pca953x_pm_ops,
.of_match_table = pca953x_dt_ids, .of_match_table = pca953x_dt_ids,
.acpi_match_table = ACPI_PTR(pca953x_acpi_ids), .acpi_match_table = pca953x_acpi_ids,
}, },
.probe = pca953x_probe, .probe = pca953x_probe,
.remove = pca953x_remove, .remove = pca953x_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