Commit f0f060bdd55e36adff4cc80b2a4ed026774db7a9

Authored by Axel Lin
Committed by Liam Girdwood
1 parent 2c6082341d

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 <axel.lin@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

drivers/regulator/tps6105x-regulator.c
... ... @@ -158,6 +158,7 @@
158 158 "failed to register regulator\n");
159 159 return ret;
160 160 }
  161 + platform_set_drvdata(pdev, tps6105x);
161 162  
162 163 return 0;
163 164 }