Merge remote-tracking branch 'regulator/topic/of' into regulator-next
This commit is contained in:
@@ -366,9 +366,9 @@ static int da9052_regulator_probe(struct platform_device *pdev)
|
||||
config.init_data = pdata->regulators[pdev->id];
|
||||
} else {
|
||||
#ifdef CONFIG_OF
|
||||
struct device_node *nproot = da9052->dev->of_node;
|
||||
struct device_node *np;
|
||||
struct device_node *nproot, *np;
|
||||
|
||||
nproot = of_node_get(da9052->dev->of_node);
|
||||
if (!nproot)
|
||||
return -ENODEV;
|
||||
|
||||
@@ -385,6 +385,7 @@ static int da9052_regulator_probe(struct platform_device *pdev)
|
||||
break;
|
||||
}
|
||||
}
|
||||
of_node_put(nproot);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user