diff options
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 d31db3e1491..23d554628a7 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; |