Skip to content

Commit

Permalink
regulator: tps6507x - add missing platform_set_drvdata in tps6507x_pm…
Browse files Browse the repository at this point in the history
…ic_probe

We should call platform_set_drvdata() before calling platform_get_drvdata().

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 Aug 11, 2010
1 parent e7973c3 commit d7399fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/regulator/tps6507x-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,7 @@ int tps6507x_pmic_probe(struct platform_device *pdev)
}

tps6507x_dev->pmic = tps;
platform_set_drvdata(pdev, tps6507x_dev);

return 0;

Expand Down

0 comments on commit d7399fa

Please sign in to comment.