regulator: Add missing platform_set_drvdata in tps6105x_regulator_probe
authorAxel Lin <axel.lin@gmail.com>
Tue, 29 Mar 2011 09:54:58 +0000 (17:54 +0800)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Fri, 27 May 2011 09:34:36 +0000 (10:34 +0100)
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>
drivers/regulator/tps6105x-regulator.c

index a4d7f4540c180b14c722bb6813dc2993b8165b37..1011873896dc9205b4844aed9531de8cd9051531 100644 (file)
@@ -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;
 }