Re: [PATCH] NFC: nxp-nci: Fix probing without ACPI

From: David Miller
Date: Mon Dec 09 2019 - 23:16:52 EST


From: Stephan Gerhold <stephan@xxxxxxxxxxx>
Date: Mon, 9 Dec 2019 19:53:43 +0100

> 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@xxxxxxxxxxxxxxx>
> Signed-off-by: Stephan Gerhold <stephan@xxxxxxxxxxx>

Applied and queued up for v5.4 -stable, thanks.