regulator: tps6507x - add missing platform_set_drvdata in tps6507x_pmic_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>
This commit is contained in:
parent
e7973c3cb3
commit
d7399fa888
1 changed files with 1 additions and 0 deletions
|
@ -614,6 +614,7 @@ int tps6507x_pmic_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
tps6507x_dev->pmic = tps;
|
||||
platform_set_drvdata(pdev, tps6507x_dev);
|
||||
|
||||
return 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue