aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nfc
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/nfc')
-rw-r--r--drivers/nfc/st21nfca/i2c.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/nfc/st21nfca/i2c.c b/drivers/nfc/st21nfca/i2c.c
index 44e1c769e335..05722085a59f 100644
--- a/drivers/nfc/st21nfca/i2c.c
+++ b/drivers/nfc/st21nfca/i2c.c
@@ -530,7 +530,7 @@ static int st21nfca_hci_i2c_of_request_resources(struct i2c_client *client)
530 "clf_enable"); 530 "clf_enable");
531 if (r) { 531 if (r) {
532 nfc_err(&client->dev, "Failed to request enable pin\n"); 532 nfc_err(&client->dev, "Failed to request enable pin\n");
533 return -ENODEV; 533 return r;
534 } 534 }
535 535
536 phy->gpio_ena = gpio; 536 phy->gpio_ena = gpio;
@@ -567,7 +567,7 @@ static int st21nfca_hci_i2c_request_resources(struct i2c_client *client)
567 GPIOF_OUT_INIT_HIGH, "clf_enable"); 567 GPIOF_OUT_INIT_HIGH, "clf_enable");
568 if (r) { 568 if (r) {
569 pr_err("%s : ena gpio_request failed\n", __FILE__); 569 pr_err("%s : ena gpio_request failed\n", __FILE__);
570 return -ENODEV; 570 return r;
571 } 571 }
572 } 572 }
573 573
@@ -628,7 +628,7 @@ static int st21nfca_hci_i2c_probe(struct i2c_client *client,
628 r = st21nfca_hci_platform_init(phy); 628 r = st21nfca_hci_platform_init(phy);
629 if (r < 0) { 629 if (r < 0) {
630 nfc_err(&client->dev, "Unable to reboot st21nfca\n"); 630 nfc_err(&client->dev, "Unable to reboot st21nfca\n");
631 return -ENODEV; 631 return r;
632 } 632 }
633 633
634 r = devm_request_threaded_irq(&client->dev, client->irq, NULL, 634 r = devm_request_threaded_irq(&client->dev, client->irq, NULL,