mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-22 13:54:57 +08:00
usb: gadget: udc: fsl_qe: 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>
This commit is contained in:
parent
96a5361aab
commit
5d82ff915f
@ -2334,10 +2334,10 @@ static int fsl_qe_stop(struct usb_gadget *gadget,
|
||||
nuke(loop_ep, -ESHUTDOWN);
|
||||
spin_unlock_irqrestore(&udc->lock, flags);
|
||||
|
||||
dev_info(udc->dev, "unregistered gadget driver '%s'\r\n",
|
||||
udc->driver->driver.name);
|
||||
udc->driver = NULL;
|
||||
|
||||
dev_info(udc->dev, "unregistered gadget driver '%s'\r\n",
|
||||
driver->driver.name);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user