diff options
Diffstat (limited to 'drivers/mfd/da9063.c')
-rw-r--r-- | drivers/mfd/da9063.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mfd/da9063.c b/drivers/mfd/da9063.c index 4627dd1aa5..b30f55a6ff 100644 --- a/drivers/mfd/da9063.c +++ b/drivers/mfd/da9063.c @@ -383,7 +383,7 @@ static int da9063_probe(struct device_d *dev) da9063_detect_reset_source(priv); - priv->restart.of_node = dev->device_node; + priv->restart.of_node = dev->of_node; priv->restart.name = "da9063"; priv->restart.restart = &da9063_restart; @@ -399,8 +399,8 @@ static int da9063_probe(struct device_d *dev) goto on_error; } - if (IS_ENABLED(CONFIG_OFDEVICE) && dev->device_node) - return of_platform_populate(dev->device_node, NULL, dev); + if (IS_ENABLED(CONFIG_OFDEVICE) && dev->of_node) + return of_platform_populate(dev->of_node, NULL, dev); return 0; |