summaryrefslogtreecommitdiff
path: root/drivers/mfd/khadas-mcu.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mfd/khadas-mcu.c')
-rw-r--r--drivers/mfd/khadas-mcu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/khadas-mcu.c b/drivers/mfd/khadas-mcu.c
index 7338cc16f327..1c807c0e6d25 100644
--- a/drivers/mfd/khadas-mcu.c
+++ b/drivers/mfd/khadas-mcu.c
@@ -112,7 +112,7 @@ static int khadas_mcu_probe(struct i2c_client *client)
if (ret)
return ret;
- if (of_find_property(dev->of_node, "#cooling-cells", NULL))
+ if (of_property_present(dev->of_node, "#cooling-cells"))
return devm_mfd_add_devices(dev, PLATFORM_DEVID_NONE,
khadas_mcu_fan_cells,
ARRAY_SIZE(khadas_mcu_fan_cells),