NFC: nxp-nci: Drop of_match_ptr() use
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 29 Jul 2019 13:35:09 +0000 (16:35 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Jul 2019 15:56:26 +0000 (08:56 -0700)
There is no need to guard OF device ID table with of_match_ptr().
Otherwise we would get a defined but not used data.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Sedat Dilek <sedat.dilek@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/nfc/nxp-nci/i2c.c

index 4e71962dc55760adb088e1290fa2b4eb2bd00e9f..f2c8a560e2655958ba2c7042a3bd09a273837e28 100644 (file)
@@ -342,7 +342,7 @@ static struct i2c_driver nxp_nci_i2c_driver = {
        .driver = {
                   .name = NXP_NCI_I2C_DRIVER_NAME,
                   .acpi_match_table = ACPI_PTR(acpi_id),
-                  .of_match_table = of_match_ptr(of_nxp_nci_i2c_match),
+                  .of_match_table = of_nxp_nci_i2c_match,
                  },
        .probe = nxp_nci_i2c_probe,
        .id_table = nxp_nci_i2c_id_table,