mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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:
@@ -614,6 +614,7 @@ int tps6507x_pmic_probe(struct platform_device *pdev)
|
||||
}
|
||||
|
||||
tps6507x_dev->pmic = tps;
|
||||
platform_set_drvdata(pdev, tps6507x_dev);
|
||||
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user