From: Axel Lin Date: Tue, 29 Mar 2011 09:54:58 +0000 (+0800) Subject: regulator: Add missing platform_set_drvdata in tps6105x_regulator_probe X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f0f060bdd55e36adff4cc80b2a4ed026774db7a9;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Mark Brown Signed-off-by: Liam Girdwood --- diff --git a/drivers/regulator/tps6105x-regulator.c b/drivers/regulator/tps6105x-regulator.c index a4d7f4540c18..1011873896dc 100644 --- a/drivers/regulator/tps6105x-regulator.c +++ b/drivers/regulator/tps6105x-regulator.c @@ -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; }