]> git.baikalelectronics.ru Git - kernel.git/commit
nfc: pn533: drop of_match_ptr from device ID table
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Fri, 28 May 2021 12:41:52 +0000 (08:41 -0400)
committerJakub Kicinski <kuba@kernel.org>
Fri, 28 May 2021 22:05:55 +0000 (15:05 -0700)
commit66836967ade91220ad491f543725fdbc860bb600
tree2c0ccbd199e95f4144aed031e3758bbe694db777
parentf1f3c9e2678ff92db6e77cb0b77dbbb3af37fd29
nfc: pn533: drop of_match_ptr from device ID table

The driver can match only via the DT table so the table should be always
used and the of_match_ptr does not have any sense (this also allows ACPI
matching via PRP0001, even though it might be not relevant here).  This
fixes compile warning (!CONFIG_OF):

    drivers/nfc/pn533/i2c.c:252:34: warning:
      ‘of_pn533_i2c_match’ defined but not used [-Wunused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Link: https://lore.kernel.org/r/20210528124200.79655-4-krzysztof.kozlowski@canonical.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/nfc/pn533/uart.c