Skip to content

Commit

Permalink
regulator: dummy: Specify a struct device
Browse files Browse the repository at this point in the history
This will be becoming mandatory.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
  • Loading branch information
Mark Brown committed May 10, 2012
1 parent b7ca878 commit 0f82b6c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/regulator/dummy.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ static int __devinit dummy_regulator_probe(struct platform_device *pdev)
struct regulator_config config = { };
int ret;

config.dev = &pdev->dev;
config.init_data = &dummy_initdata;

dummy_regulator_rdev = regulator_register(&dummy_desc, &config);
Expand Down

0 comments on commit 0f82b6c

Please sign in to comment.