Skip to contentSkip to conversation

serial_cs: drop spurious flush_scheduled_work() call

PATCH New Tejun Heo 1 participant 1 message Oct 15, 2010

lore
Share & tools
lore

Tejun Heo

author
#0 lore raw

PATCH 1/1 serial_cs: drop spurious flush_scheduled_work() call

serial_cs doesn't use the system workqueue. Drop spurious flush_scheduled_work() call.

This is to prepare for the deprecation and removal of flush_scheduled_work().

---
 drivers/serial/serial_cs.c |    5 -----
 1 file changed, 5 deletions(-)
drivers/serial/serial_cs.c +0 -5
Index: work/drivers/serial/serial_cs.c
===================================================================
@@ -363,11 +363,6 @@ static void serial_detach(struct pcmcia_
 	dev_dbg(&link->dev, "serial_detach\n");
 
 	/*
-	 * Ensure any outstanding scheduled tasks are completed.
-	 */
-	flush_scheduled_work();
-
-	/*
 	 * Ensure that the ports have been released.
 	 */
 	serial_remove(link);