Commit a1124c84 authored by Tetsuo Handa's avatar Tetsuo Handa Committed by Sebastian Reichel

power: supply: ab8500: Remove flush_scheduled_work() call.

It seems to me that ab8500 driver is using dedicated workqueues and
is not calling schedule{,_delayed}_work{,_on}(). Then, there will be
no work to flush using flush_scheduled_work().
Signed-off-by: default avatarTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent 13a4223d
...@@ -697,7 +697,6 @@ static void ab8500_btemp_unbind(struct device *dev, struct device *master, ...@@ -697,7 +697,6 @@ static void ab8500_btemp_unbind(struct device *dev, struct device *master,
/* Delete the work queue */ /* Delete the work queue */
destroy_workqueue(di->btemp_wq); destroy_workqueue(di->btemp_wq);
flush_scheduled_work();
} }
static const struct component_ops ab8500_btemp_component_ops = { static const struct component_ops ab8500_btemp_component_ops = {
......
...@@ -1769,7 +1769,6 @@ static void ab8500_chargalg_unbind(struct device *dev, struct device *master, ...@@ -1769,7 +1769,6 @@ static void ab8500_chargalg_unbind(struct device *dev, struct device *master,
/* Delete the work queue */ /* Delete the work queue */
destroy_workqueue(di->chargalg_wq); destroy_workqueue(di->chargalg_wq);
flush_scheduled_work();
} }
static const struct component_ops ab8500_chargalg_component_ops = { static const struct component_ops ab8500_chargalg_component_ops = {
......
...@@ -3377,8 +3377,6 @@ static void ab8500_charger_unbind(struct device *dev) ...@@ -3377,8 +3377,6 @@ static void ab8500_charger_unbind(struct device *dev)
/* Delete the work queue */ /* Delete the work queue */
destroy_workqueue(di->charger_wq); destroy_workqueue(di->charger_wq);
flush_scheduled_work();
/* Unbind fg, btemp, algorithm */ /* Unbind fg, btemp, algorithm */
component_unbind_all(dev, di); component_unbind_all(dev, di);
} }
......
...@@ -3227,7 +3227,6 @@ static int ab8500_fg_remove(struct platform_device *pdev) ...@@ -3227,7 +3227,6 @@ static int ab8500_fg_remove(struct platform_device *pdev)
struct ab8500_fg *di = platform_get_drvdata(pdev); struct ab8500_fg *di = platform_get_drvdata(pdev);
destroy_workqueue(di->fg_wq); destroy_workqueue(di->fg_wq);
flush_scheduled_work();
component_del(&pdev->dev, &ab8500_fg_component_ops); component_del(&pdev->dev, &ab8500_fg_component_ops);
list_del(&di->node); list_del(&di->node);
ab8500_fg_sysfs_exit(di); ab8500_fg_sysfs_exit(di);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment