diff options
-rw-r--r-- | drivers/regulator/gpio-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/gpio-regulator.c b/drivers/regulator/gpio-regulator.c index f0acf52498bd..42e1cb1835e5 100644 --- a/drivers/regulator/gpio-regulator.c +++ b/drivers/regulator/gpio-regulator.c | |||
@@ -284,7 +284,7 @@ static int __devinit gpio_regulator_probe(struct platform_device *pdev) | |||
284 | drvdata->state = state; | 284 | drvdata->state = state; |
285 | 285 | ||
286 | drvdata->dev = regulator_register(&drvdata->desc, &pdev->dev, | 286 | drvdata->dev = regulator_register(&drvdata->desc, &pdev->dev, |
287 | config->init_data, drvdata); | 287 | config->init_data, drvdata, NULL); |
288 | if (IS_ERR(drvdata->dev)) { | 288 | if (IS_ERR(drvdata->dev)) { |
289 | ret = PTR_ERR(drvdata->dev); | 289 | ret = PTR_ERR(drvdata->dev); |
290 | dev_err(&pdev->dev, "Failed to register regulator: %d\n", ret); | 290 | dev_err(&pdev->dev, "Failed to register regulator: %d\n", ret); |