gpio: pca953x: Drop unneeded ACPI_PTR()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 20 May 2020 21:19:14 +0000 (00:19 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 3 Jun 2020 12:04:28 +0000 (14:04 +0200)
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: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20200520211916.25727-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-pca953x.c

index 4bb3d3524bc734d53d507b7238c7e817d052d914..1fca8dd7824fdf592efd4f7d01e57503284e815d 100644 (file)
@@ -1176,7 +1176,7 @@ static struct i2c_driver pca953x_driver = {
                .name   = "pca953x",
                .pm     = &pca953x_pm_ops,
                .of_match_table = pca953x_dt_ids,
-               .acpi_match_table = ACPI_PTR(pca953x_acpi_ids),
+               .acpi_match_table = pca953x_acpi_ids,
        },
        .probe          = pca953x_probe,
        .remove         = pca953x_remove,