diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-01-11 02:43:44 -0500 |
---|---|---|
committer | Anton Vorontsov <anton.vorontsov@linaro.org> | 2012-03-26 12:41:15 -0400 |
commit | e1be8329991b708adbb4e767bcfd6ad1f92bae65 (patch) | |
tree | 74e6f38ac10454f282d22c774675d1b45477ed81 /drivers/power/da9052-battery.c | |
parent | 64eb9b02bfbbc2a53b6092cc12c1f42cc3261dbc (diff) |
da9052-battery: Add missing platform_set_drvdata
Add missing platform_set_drvdata in da9052_bat_probe.
Otherwise, calling platform_get_drvdata in da9052_bat_remove returns NULL.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Diffstat (limited to 'drivers/power/da9052-battery.c')
-rw-r--r-- | drivers/power/da9052-battery.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/da9052-battery.c b/drivers/power/da9052-battery.c index e8ea47a53dee..07d5b36535d5 100644 --- a/drivers/power/da9052-battery.c +++ b/drivers/power/da9052-battery.c | |||
@@ -612,6 +612,7 @@ static s32 __devinit da9052_bat_probe(struct platform_device *pdev) | |||
612 | if (ret) | 612 | if (ret) |
613 | goto err; | 613 | goto err; |
614 | 614 | ||
615 | platform_set_drvdata(pdev, bat); | ||
615 | return 0; | 616 | return 0; |
616 | 617 | ||
617 | err: | 618 | err: |