summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/udc/amd5536udc.c
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2014-10-17 20:16:04 +0400
committerFelipe Balbi <balbi@ti.com>2014-11-03 19:01:07 +0300
commit21090f06f09f72f2806c19f0bdcd4fde622c2676 (patch)
treef2b6ddeb94c123ceaa00c02cdabcc8d1e78d562f /drivers/usb/gadget/udc/amd5536udc.c
parent3da6702f577be7249ece5799fb91cf2bf5e243fd (diff)
downloadlinux-21090f06f09f72f2806c19f0bdcd4fde622c2676.tar.xz
usb: gadget: udc: amd5536: do not rely on 'driver' argument
future patches will remove the extra 'driver' argument to ->udc_stop(), in order to do that, we must make sure that our UDC does not rely on it first. Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/udc/amd5536udc.c')
-rw-r--r--drivers/usb/gadget/udc/amd5536udc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/udc/amd5536udc.c b/drivers/usb/gadget/udc/amd5536udc.c
index 3b9d13848a4f..7d0e0b8a9606 100644
--- a/drivers/usb/gadget/udc/amd5536udc.c
+++ b/drivers/usb/gadget/udc/amd5536udc.c
@@ -1971,7 +1971,7 @@ static int amd5536_udc_stop(struct usb_gadget *g,
spin_lock_irqsave(&dev->lock, flags);
udc_mask_unused_interrupts(dev);
- shutdown(dev, driver);
+ shutdown(dev, NULL);
spin_unlock_irqrestore(&dev->lock, flags);
dev->driver = NULL;