diff options
Diffstat (limited to 'drivers/power/bq27x00_battery.c')
-rw-r--r-- | drivers/power/bq27x00_battery.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/power/bq27x00_battery.c b/drivers/power/bq27x00_battery.c index 26037ca7efb4..b309713b63bc 100644 --- a/drivers/power/bq27x00_battery.c +++ b/drivers/power/bq27x00_battery.c | |||
@@ -966,7 +966,6 @@ static int bq27000_battery_probe(struct platform_device *pdev) | |||
966 | return 0; | 966 | return 0; |
967 | 967 | ||
968 | err_free: | 968 | err_free: |
969 | platform_set_drvdata(pdev, NULL); | ||
970 | kfree(di); | 969 | kfree(di); |
971 | 970 | ||
972 | return ret; | 971 | return ret; |
@@ -978,7 +977,6 @@ static int bq27000_battery_remove(struct platform_device *pdev) | |||
978 | 977 | ||
979 | bq27x00_powersupply_unregister(di); | 978 | bq27x00_powersupply_unregister(di); |
980 | 979 | ||
981 | platform_set_drvdata(pdev, NULL); | ||
982 | kfree(di); | 980 | kfree(di); |
983 | 981 | ||
984 | return 0; | 982 | return 0; |