aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2009-01-19 08:37:04 -0500
committerLiam Girdwood <lrg@slimlogic.co.uk>2009-03-31 04:56:21 -0400
commitbcf3402c50a48d51462f37f72129d9c4369702b4 (patch)
tree9a8dcd212ac0a5d0a7da05369e0dd408ee87934c /drivers/regulator
parent93c62da23a717f59933ec799688da42f71d8c6c4 (diff)
regulator: Allow init_data to be passed to fixed voltage regulators
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/fixed.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/regulator/fixed.c b/drivers/regulator/fixed.c
index d31db3e14913..23d554628a76 100644
--- a/drivers/regulator/fixed.c
+++ b/drivers/regulator/fixed.c
@@ -73,7 +73,8 @@ static int regulator_fixed_voltage_probe(struct platform_device *pdev)
73 73
74 drvdata->microvolts = config->microvolts; 74 drvdata->microvolts = config->microvolts;
75 75
76 drvdata->dev = regulator_register(&drvdata->desc, drvdata); 76 drvdata->dev = regulator_register(&drvdata->desc, &pdev->dev,
77 config->init_data, drvdata);
77 if (IS_ERR(drvdata->dev)) { 78 if (IS_ERR(drvdata->dev)) {
78 ret = PTR_ERR(drvdata->dev); 79 ret = PTR_ERR(drvdata->dev);
79 goto err_name; 80 goto err_name;