aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/nfc/st21nfcb/i2c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/nfc/st21nfcb/i2c.c b/drivers/nfc/st21nfcb/i2c.c
index 363c2fc6f816..01ba865863ee 100644
--- a/drivers/nfc/st21nfcb/i2c.c
+++ b/drivers/nfc/st21nfcb/i2c.c
@@ -255,7 +255,7 @@ static int st21nfcb_nci_i2c_of_request_resources(struct i2c_client *client)
255 GPIOF_OUT_INIT_HIGH, "clf_reset"); 255 GPIOF_OUT_INIT_HIGH, "clf_reset");
256 if (r) { 256 if (r) {
257 nfc_err(&client->dev, "Failed to request reset pin\n"); 257 nfc_err(&client->dev, "Failed to request reset pin\n");
258 return -ENODEV; 258 return r;
259 } 259 }
260 phy->gpio_reset = gpio; 260 phy->gpio_reset = gpio;
261 261
@@ -290,7 +290,7 @@ static int st21nfcb_nci_i2c_request_resources(struct i2c_client *client)
290 phy->gpio_reset, GPIOF_OUT_INIT_HIGH, "clf_reset"); 290 phy->gpio_reset, GPIOF_OUT_INIT_HIGH, "clf_reset");
291 if (r) { 291 if (r) {
292 pr_err("%s : reset gpio_request failed\n", __FILE__); 292 pr_err("%s : reset gpio_request failed\n", __FILE__);
293 return -ENODEV; 293 return r;
294 } 294 }
295 295
296 return 0; 296 return 0;