summaryrefslogtreecommitdiff
path: root/drivers/nfc/nfcmrvl/i2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/nfc/nfcmrvl/i2c.c')
-rw-r--r--drivers/nfc/nfcmrvl/i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nfc/nfcmrvl/i2c.c b/drivers/nfc/nfcmrvl/i2c.c
index e74342b0b728..164e2ab859fd 100644
--- a/drivers/nfc/nfcmrvl/i2c.c
+++ b/drivers/nfc/nfcmrvl/i2c.c
@@ -168,7 +168,7 @@ static int nfcmrvl_i2c_parse_dt(struct device_node *node,
return ret;
}
- if (of_find_property(node, "i2c-int-falling", NULL))
+ if (of_property_read_bool(node, "i2c-int-falling"))
pdata->irq_polarity = IRQF_TRIGGER_FALLING;
else
pdata->irq_polarity = IRQF_TRIGGER_RISING;