diff options
Diffstat (limited to 'drivers/mfd/axp20x.c')
-rw-r--r-- | drivers/mfd/axp20x.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index 62df91ff01..3004a9b1fa 100644 --- a/drivers/mfd/axp20x.c +++ b/drivers/mfd/axp20x.c @@ -348,9 +348,9 @@ int axp20x_device_probe(struct axp20x_dev *axp20x) * property "x-powers,master-mode" to override the default. */ if (axp20x->variant == AXP806_ID) { - if (of_property_read_bool(axp20x->dev->device_node, + if (of_property_read_bool(axp20x->dev->of_node, "x-powers,master-mode") || - of_property_read_bool(axp20x->dev->device_node, + of_property_read_bool(axp20x->dev->of_node, "x-powers,self-working-mode")) regmap_write(axp20x->regmap, AXP806_REG_ADDR_EXT, AXP806_REG_ADDR_EXT_ADDR_MASTER_MODE); |