Skip to content

Commit

Permalink
regulator: Add missing platform_set_drvdata in tps6105x_regulator_probe
Browse files Browse the repository at this point in the history
Otherwise, calling platform_get_drvdata in tps6105x_regulator_remove
returns NULL.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
  • Loading branch information
Axel Lin authored and Liam Girdwood committed May 27, 2011
1 parent 2c60823 commit f0f060b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/regulator/tps6105x-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ static int __devinit tps6105x_regulator_probe(struct platform_device *pdev)
"failed to register regulator\n");
return ret;
}
platform_set_drvdata(pdev, tps6105x);

return 0;
}
Expand Down

0 comments on commit f0f060b

Please sign in to comment.