Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 539253f6 authored by Tejun Heo's avatar Tejun Heo
Browse files

sh: don't use flush_scheduled_work()



flush_scheduled_work() is deprecated and scheduled to be removed.
Directly flush psw->work on removal instead.

Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: linux-sh@vger.kernel.org
parent fe413ec3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -107,7 +107,7 @@ static int switch_drv_remove(struct platform_device *pdev)
		device_remove_file(&pdev->dev, &dev_attr_switch);

	platform_set_drvdata(pdev, NULL);
	flush_scheduled_work();
	flush_work_sync(&psw->work);
	del_timer_sync(&psw->debounce);
	free_irq(irq, pdev);