Skip to content

Commit

Permalink
regulator: gpio-regulator: do not pass drvdata pointer as reference
Browse files Browse the repository at this point in the history
Commit c172708 (regulator: core: Use a struct to pass in
regulator runtime configuration) added the drvdata pointer
only per reference to the new config array in the gpio-regulator.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Acked-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Heiko Stübner authored and Mark Brown committed Jun 4, 2012
1 parent 0c09d31 commit 7d4be2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/regulator/gpio-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ static int __devinit gpio_regulator_probe(struct platform_device *pdev)

cfg.dev = &pdev->dev;
cfg.init_data = config->init_data;
cfg.driver_data = &drvdata;
cfg.driver_data = drvdata;

drvdata->dev = regulator_register(&drvdata->desc, &cfg);
if (IS_ERR(drvdata->dev)) {
Expand Down

0 comments on commit 7d4be2f

Please sign in to comment.