From d7399fa88847ae93203ff5618edd97d94d36c762 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Mon, 9 Aug 2010 15:51:23 +0800 Subject: 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 --- drivers/regulator/tps6507x-regulator.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/regulator') 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; -- cgit v1.2.3