serial_cs: drop spurious flush_scheduled_work() call
authorTejun Heo <tj@kernel.org>
Fri, 15 Oct 2010 15:04:45 +0000 (17:04 +0200)
committerDominik Brodowski <linux@dominikbrodowski.net>
Sat, 16 Oct 2010 09:07:07 +0000 (11:07 +0200)
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().

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
drivers/serial/serial_cs.c

index 649ce543327b3d9bf922313ef8340b6161e83d9e..93760b2ea1727a908ca862dfc9922e4b13a3db63 100644 (file)
@@ -330,11 +330,6 @@ static void serial_detach(struct pcmcia_device *link)
 
        dev_dbg(&link->dev, "serial_detach\n");
 
-       /*
-        * Ensure any outstanding scheduled tasks are completed.
-        */
-       flush_scheduled_work();
-
        /*
         * Ensure that the ports have been released.
         */