Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Axel Lin and committed by
Liam Girdwood
f0f060bd 2c608234

+1
+1
drivers/regulator/tps6105x-regulator.c
··· 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 }