NFC: nxp-nci: Fix probing without ACPI
authorStephan Gerhold <stephan@gerhold.net>
Mon, 9 Dec 2019 18:53:43 +0000 (19:53 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Dec 2019 04:15:17 +0000 (20:15 -0800)
commit868afbaca1e2a7923e48b5e8c07be34660525db5
tree1790982eb3be4a743397a6f36deb864d635395c5
parent991a34593bad5047420d281737b074cc6f821af4
NFC: nxp-nci: Fix probing without ACPI

devm_acpi_dev_add_driver_gpios() returns -ENXIO if CONFIG_ACPI
is disabled (e.g. on device tree platforms).
In this case, nxp-nci will silently fail to probe.

The other NFC drivers only log a debug message if
devm_acpi_dev_add_driver_gpios() fails.
Do the same in nxp-nci to fix this problem.

Fixes: ad0acfd69add ("NFC: nxp-nci: Get rid of code duplication in ->probe()")
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Acked-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/nfc/nxp-nci/i2c.c