Commit 0f82b6cf authored by Mark Brown's avatar Mark Brown

regulator: dummy: Specify a struct device

This will be becoming mandatory.
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: default avatarLiam Girdwood <lrg@ti.com>
parent b7ca8788
...@@ -42,6 +42,7 @@ static int __devinit dummy_regulator_probe(struct platform_device *pdev) ...@@ -42,6 +42,7 @@ static int __devinit dummy_regulator_probe(struct platform_device *pdev)
struct regulator_config config = { }; struct regulator_config config = { };
int ret; int ret;
config.dev = &pdev->dev;
config.init_data = &dummy_initdata; config.init_data = &dummy_initdata;
dummy_regulator_rdev = regulator_register(&dummy_desc, &config); dummy_regulator_rdev = regulator_register(&dummy_desc, &config);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment