Commit d7399fa8 authored by Axel Lin's avatar Axel Lin Committed by Liam Girdwood

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: default avatarAxel Lin <axel.lin@gmail.com>
Acked-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
parent e7973c3c
......@@ -614,6 +614,7 @@ int tps6507x_pmic_probe(struct platform_device *pdev)
}
tps6507x_dev->pmic = tps;
platform_set_drvdata(pdev, tps6507x_dev);
return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment