diff options
-rw-r--r-- | drivers/regulator/max8925-regulator.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/max8925-regulator.c b/drivers/regulator/max8925-regulator.c index e316abae004a..dad2bcd14e96 100644 --- a/drivers/regulator/max8925-regulator.c +++ b/drivers/regulator/max8925-regulator.c | |||
@@ -249,6 +249,7 @@ static int max8925_regulator_dt_init(struct platform_device *pdev, | |||
249 | { | 249 | { |
250 | struct device_node *nproot, *np; | 250 | struct device_node *nproot, *np; |
251 | int rcount; | 251 | int rcount; |
252 | |||
252 | nproot = of_node_get(pdev->dev.parent->of_node); | 253 | nproot = of_node_get(pdev->dev.parent->of_node); |
253 | if (!nproot) | 254 | if (!nproot) |
254 | return -ENODEV; | 255 | return -ENODEV; |