diff mbox

[1/1] regulator/fixed: pass regulator_register of_node

Message ID 1325335876-15296-1-git-send-email-richard.zhao@linaro.org
State Accepted
Commit 1bb50b28a984857c2487d13187af5b3701aed38a
Headers show

Commit Message

Richard Zhao Dec. 31, 2011, 12:51 p.m. UTC
regulator_get needs of_node to find right regulator.

Signed-off-by: Richard Zhao <richard.zhao@linaro.org>
---
 drivers/regulator/fixed.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Comments

Mark Brown Jan. 2, 2012, 12:46 p.m. UTC | #1
On Sat, Dec 31, 2011 at 08:51:16PM +0800, Richard Zhao wrote:
> regulator_get needs of_node to find right regulator.
> 
> Signed-off-by: Richard Zhao <richard.zhao@linaro.org>

Applied, thanks, but please always use subject lines that match the
subsystem you're submitting against.
Richard Zhao Jan. 2, 2012, 1:22 p.m. UTC | #2
Mark Brown <broonie@opensource.wolfsonmicro.com> wrote:

>On Sat, Dec 31, 2011 at 08:51:16PM +0800, Richard Zhao wrote:
>> regulator_get needs of_node to find right regulator.
>> 
>> Signed-off-by: Richard Zhao <richard.zhao@linaro.org>
>
>Applied, thanks, but please always use subject lines that match the
>subsystem you're submitting against.

I thought it is more brief. I will follow the convention.

Thanks
Richard
diff mbox

Patch

diff --git a/drivers/regulator/fixed.c b/drivers/regulator/fixed.c
index fa0c426..e24e3a1 100644
--- a/drivers/regulator/fixed.c
+++ b/drivers/regulator/fixed.c
@@ -247,7 +247,8 @@  static int __devinit reg_fixed_voltage_probe(struct platform_device *pdev)
 	}
 
 	drvdata->dev = regulator_register(&drvdata->desc, &pdev->dev,
-					  config->init_data, drvdata, NULL);
+					  config->init_data, drvdata,
+					  pdev->dev.of_node);
 	if (IS_ERR(drvdata->dev)) {
 		ret = PTR_ERR(drvdata->dev);
 		dev_err(&pdev->dev, "Failed to register regulator: %d\n", ret);