diff options
author | Richard Zhao <richard.zhao@linaro.org> | 2011-12-31 07:51:16 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-01-02 07:45:37 -0500 |
commit | 1bb50b28a984857c2487d13187af5b3701aed38a (patch) | |
tree | 6ab869f29e531ded45c6c08a056ccd3b97ea05cf /drivers/regulator/fixed.c | |
parent | 935a521066113e16c15b842852ed681bbbdfbc63 (diff) |
regulator: pass regulator_register of_node in fixed voltage driver
regulator_get needs of_node to find right regulator.
Signed-off-by: Richard Zhao <richard.zhao@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator/fixed.c')
-rw-r--r-- | drivers/regulator/fixed.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/regulator/fixed.c b/drivers/regulator/fixed.c index a44a017c0864..393f03982180 100644 --- a/drivers/regulator/fixed.c +++ b/drivers/regulator/fixed.c | |||
@@ -246,7 +246,8 @@ static int __devinit reg_fixed_voltage_probe(struct platform_device *pdev) | |||
246 | } | 246 | } |
247 | 247 | ||
248 | drvdata->dev = regulator_register(&drvdata->desc, &pdev->dev, | 248 | drvdata->dev = regulator_register(&drvdata->desc, &pdev->dev, |
249 | config->init_data, drvdata, NULL); | 249 | config->init_data, drvdata, |
250 | pdev->dev.of_node); | ||
250 | if (IS_ERR(drvdata->dev)) { | 251 | if (IS_ERR(drvdata->dev)) { |
251 | ret = PTR_ERR(drvdata->dev); | 252 | ret = PTR_ERR(drvdata->dev); |
252 | dev_err(&pdev->dev, "Failed to register regulator: %d\n", ret); | 253 | dev_err(&pdev->dev, "Failed to register regulator: %d\n", ret); |