aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/dummy.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/regulator/dummy.c')
-rw-r--r--drivers/regulator/dummy.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/regulator/dummy.c b/drivers/regulator/dummy.c
index 0ee00de4be72..1571bee6b1bc 100644
--- a/drivers/regulator/dummy.c
+++ b/drivers/regulator/dummy.c
@@ -39,10 +39,12 @@ static struct regulator_desc dummy_desc = {
39 39
40static int __devinit dummy_regulator_probe(struct platform_device *pdev) 40static int __devinit dummy_regulator_probe(struct platform_device *pdev)
41{ 41{
42 struct regulator_config config = { };
42 int ret; 43 int ret;
43 44
44 dummy_regulator_rdev = regulator_register(&dummy_desc, NULL, 45 config.init_data = &dummy_initdata;
45 &dummy_initdata, NULL, NULL); 46
47 dummy_regulator_rdev = regulator_register(&dummy_desc, &config);
46 if (IS_ERR(dummy_regulator_rdev)) { 48 if (IS_ERR(dummy_regulator_rdev)) {
47 ret = PTR_ERR(dummy_regulator_rdev); 49 ret = PTR_ERR(dummy_regulator_rdev);
48 pr_err("Failed to register regulator: %d\n", ret); 50 pr_err("Failed to register regulator: %d\n", ret);