diff options
Diffstat (limited to 'drivers/usb/gadget/u_ether.c')
-rw-r--r-- | drivers/usb/gadget/u_ether.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/gadget/u_ether.c b/drivers/usb/gadget/u_ether.c index e3454fe46b47..1eda968b5644 100644 --- a/drivers/usb/gadget/u_ether.c +++ b/drivers/usb/gadget/u_ether.c | |||
@@ -839,11 +839,9 @@ void gether_cleanup(void) | |||
839 | return; | 839 | return; |
840 | 840 | ||
841 | unregister_netdev(the_dev->net); | 841 | unregister_netdev(the_dev->net); |
842 | flush_work_sync(&the_dev->work); | ||
842 | free_netdev(the_dev->net); | 843 | free_netdev(the_dev->net); |
843 | 844 | ||
844 | /* assuming we used keventd, it must quiesce too */ | ||
845 | flush_scheduled_work(); | ||
846 | |||
847 | the_dev = NULL; | 845 | the_dev = NULL; |
848 | } | 846 | } |
849 | 847 | ||