提交 5d82ff91 编写于 作者: F Felipe Balbi

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: NFelipe Balbi <balbi@ti.com>
上级 96a5361a
...@@ -2334,10 +2334,10 @@ static int fsl_qe_stop(struct usb_gadget *gadget, ...@@ -2334,10 +2334,10 @@ static int fsl_qe_stop(struct usb_gadget *gadget,
nuke(loop_ep, -ESHUTDOWN); nuke(loop_ep, -ESHUTDOWN);
spin_unlock_irqrestore(&udc->lock, flags); spin_unlock_irqrestore(&udc->lock, flags);
dev_info(udc->dev, "unregistered gadget driver '%s'\r\n",
udc->driver->driver.name);
udc->driver = NULL; udc->driver = NULL;
dev_info(udc->dev, "unregistered gadget driver '%s'\r\n",
driver->driver.name);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册