aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Fertser <fercerpav@gmail.com>2009-07-26 17:56:54 +0400
committerPaul Fertser <fercerpav@gmail.com>2009-08-02 11:24:27 +0400
commit5af71f726c58adeef22afafacc2242fd920f9882 (patch)
tree2a38228033d2b589286257a3639d5a481d10cd65
parentdcd90798cdab0ab1e7c1fb56af8841bb225b5fdc (diff)
gta01_battery: fix unloading bug
Driver data must be properly registered after allocation Signed-off-by: Paul Fertser <fercerpav@gmail.com>
-rw-r--r--drivers/power/gta01_battery.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/gta01_battery.c b/drivers/power/gta01_battery.c
index 81a0fe7387e..5b1a6c9b966 100644
--- a/drivers/power/gta01_battery.c
+++ b/drivers/power/gta01_battery.c
@@ -76,6 +76,7 @@ static int gta01_battery_probe(struct platform_device *pdev)
gta01_bat->psy.external_power_changed = gta01_bat_ext_changed;
gta01_bat->pdata = pdev->dev.platform_data;
+ platform_set_drvdata(pdev, gta01_bat);
power_supply_register(&pdev->dev, &gta01_bat->psy);
return 0;