regulator: Add missing platform_set_drvdata in tps6105x_regulator_probe
PATCH v2 1/1 regulator: Add missing platform_set_drvdata in tps6105x_regulator_probe
Otherwise, calling platform_get_drvdata in tps6105x_regulator_remove returns NULL.
Signed-off-by Axel Lin <[email protected]>
Acked-by Mark Brown <[email protected]>
---
v2: update commit log
drivers/regulator/tps6105x-regulator.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/regulator/tps6105x-regulator.c +1 -0
@@ -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 ; }
Signature · 1 line
1.7.1
Liam Girdwood
AppliedQuoted 6 lines · Axel Lin
Otherwise, calling
platform_get_drvdataintps6105x_regulator_removereturns NULL.Signed-off-by Axel Lin <[email protected]>Acked-by Mark Brown <[email protected]>---
Applied.
Thanks
Liam