From: Axel Lin Date: Mon, 9 Aug 2010 07:51:23 +0000 (+0800) Subject: regulator: tps6507x - add missing platform_set_drvdata in tps6507x_pmic_probe X-Git-Tag: v2.6.36-rc1~58^2~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d7399fa88847ae93203ff5618edd97d94d36c762;p=karo-tx-linux.git 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: Axel Lin Acked-by: Mark Brown Signed-off-by: Liam Girdwood --- diff --git a/drivers/regulator/tps6507x-regulator.c b/drivers/regulator/tps6507x-regulator.c index 8152d65220f5..c239f42aa4a3 100644 --- a/drivers/regulator/tps6507x-regulator.c +++ b/drivers/regulator/tps6507x-regulator.c @@ -614,6 +614,7 @@ int tps6507x_pmic_probe(struct platform_device *pdev) } tps6507x_dev->pmic = tps; + platform_set_drvdata(pdev, tps6507x_dev); return 0;