Skip to content

Commit 868afba

Browse files
stephan-ghdavem330
authored andcommitted
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: ad0acfd ("NFC: nxp-nci: Get rid of code duplication in ->probe()") Cc: Andy Shevchenko <[email protected]> Signed-off-by: Stephan Gerhold <[email protected]> Acked-by: Andy Shevchenko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 991a345 commit 868afba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/nfc/nxp-nci/i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ static int nxp_nci_i2c_probe(struct i2c_client *client,
278278

279279
r = devm_acpi_dev_add_driver_gpios(dev, acpi_nxp_nci_gpios);
280280
if (r)
281-
return r;
281+
dev_dbg(dev, "Unable to add GPIO mapping table\n");
282282

283283
phy->gpiod_en = devm_gpiod_get(dev, "enable", GPIOD_OUT_LOW);
284284
if (IS_ERR(phy->gpiod_en)) {

0 commit comments

Comments
 (0)