dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
Axel Lin 2012-01-11 15:43:44 +08:00 committed by Anton Vorontsov
parent 64eb9b02bf
commit e1be832999
1 changed files with 1 additions and 0 deletions

View File

@ -612,6 +612,7 @@ static s32 __devinit da9052_bat_probe(struct platform_device *pdev)
if (ret)
goto err;
platform_set_drvdata(pdev, bat);
return 0;
err: