summaryrefslogtreecommitdiffstats
path: root/drivers/nfc/nfcmrvl/spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/nfc/nfcmrvl/spi.c')
-rw-r--r--drivers/nfc/nfcmrvl/spi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/nfc/nfcmrvl/spi.c b/drivers/nfc/nfcmrvl/spi.c
index 8e0ddb434..1f4120e33 100644
--- a/drivers/nfc/nfcmrvl/spi.c
+++ b/drivers/nfc/nfcmrvl/spi.c
@@ -129,9 +129,9 @@ static int nfcmrvl_spi_parse_dt(struct device_node *node,
}
ret = irq_of_parse_and_map(node, 0);
- if (ret < 0) {
- pr_err("Unable to get irq, error: %d\n", ret);
- return ret;
+ if (!ret) {
+ pr_err("Unable to get irq\n");
+ return -EINVAL;
}
pdata->irq = ret;