summaryrefslogtreecommitdiffstats
path: root/drivers/power/supply/generic-adc-battery.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/power/supply/generic-adc-battery.c')
-rw-r--r--drivers/power/supply/generic-adc-battery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/supply/generic-adc-battery.c b/drivers/power/supply/generic-adc-battery.c
index 0032069fbc2b..66039c665dd1 100644
--- a/drivers/power/supply/generic-adc-battery.c
+++ b/drivers/power/supply/generic-adc-battery.c
@@ -373,7 +373,7 @@ static int gab_remove(struct platform_device *pdev)
}
kfree(adc_bat->psy_desc.properties);
- cancel_delayed_work(&adc_bat->bat_work);
+ cancel_delayed_work_sync(&adc_bat->bat_work);
return 0;
}