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

Commit 7f6b0db9 authored by Tejun Heo's avatar Tejun Heo
Browse files

net/dsa: don't use flush_scheduled_work()



flush_scheduled_work() is deprecated and scheduled to be removed.
Directly flush dst->link_poll_work on remove instead.

Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Acked-by: default avatarLennert Buytenhek <buytenh@wantstofly.org>
parent 158fa677
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -390,7 +390,7 @@ static int dsa_remove(struct platform_device *pdev)
	if (dst->link_poll_needed)
		del_timer_sync(&dst->link_poll_timer);

	flush_scheduled_work();
	flush_work_sync(&dst->link_poll_work);

	for (i = 0; i < dst->pd->nr_chips; i++) {
		struct dsa_switch *ds = dst->ds[i];