diff options
author | Alexander Shishkin <alexander.shishkin@linux.intel.com> | 2012-05-04 13:47:14 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-08 16:27:56 (GMT) |
commit | efa015bbc410198a192cd3e504ce24104e8c8852 (patch) | |
tree | a40fff67c677ec7bf7fe600fca7f47bb37e5ca76 /drivers/usb/gadget/ci13xxx_udc.c | |
parent | ab59ac0155ebe16d563b68d63ceb2e2d0747180f (diff) | |
download | linux-fsl-qoriq-efa015bbc410198a192cd3e504ce24104e8c8852.tar.xz |
usb: gadget: ci13xxx: fix ep list removal in gadget unregistering code
Since ep0{out,in} are never on gadget's ep_list, there's no need to try
to unlink them, even more so because ep_list linkage is not initialized
for these endpoints.
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/gadget/ci13xxx_udc.c')
-rw-r--r-- | drivers/usb/gadget/ci13xxx_udc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/ci13xxx_udc.c b/drivers/usb/gadget/ci13xxx_udc.c index 1a44bf9..b6f359c 100644 --- a/drivers/usb/gadget/ci13xxx_udc.c +++ b/drivers/usb/gadget/ci13xxx_udc.c @@ -2737,7 +2737,7 @@ static int ci13xxx_stop(struct usb_gadget_driver *driver) for (i = 0; i < hw_ep_max; i++) { struct ci13xxx_ep *mEp = &udc->ci13xxx_ep[i]; - if (!list_empty(&mEp->ep.ep_list)) + if (mEp->num) list_del_init(&mEp->ep.ep_list); if (mEp->qh.ptr != NULL) |