summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Moeller <moeller.matt@gmail.com>2016-03-09 20:19:25 -0600
committerAmit Pundir <amit.pundir@linaro.org>2016-04-07 16:49:58 +0530
commit3e04d6dfbce9bd89f0c5c79123670397d8ca9370 (patch)
treed66ff1fb9347f4b6d563bd3dbf544a68f635ab7f
parente9eb108900c60b1696426cb6d155cea9905b403f (diff)
usb: u_ether: Add missing rx_work init
commit 398a708ed5f3ef771d96dfb9b95b5d5170d17eb7 usb: u_ether: Add workqueue as bottom half handler for rx data path set up a worker for the rx data path but missed a case where the work_struct needed to be initialized. This patch adds the missing 'INIT_WORK' Change-Id: I2daabd39d35b3e17a3054837282d649d9c78a0aa Signed-off-by: Matthew Moeller <moeller.matt@gmail.com>
-rw-r--r--drivers/usb/gadget/function/u_ether.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/function/u_ether.c b/drivers/usb/gadget/function/u_ether.c
index 76b25445c6ad..dd73dfe5dcab 100644
--- a/drivers/usb/gadget/function/u_ether.c
+++ b/drivers/usb/gadget/function/u_ether.c
@@ -1014,6 +1014,7 @@ struct net_device *gether_setup_name_default(const char *netname)
spin_lock_init(&dev->lock);
spin_lock_init(&dev->req_lock);
INIT_WORK(&dev->work, eth_work);
+ INIT_WORK(&dev->rx_work, process_rx_w);
INIT_LIST_HEAD(&dev->tx_reqs);
INIT_LIST_HEAD(&dev->rx_reqs);