提交 d7343161 编写于 作者: F Felipe Balbi

usb: gadget: udc: pxa25x: 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>
上级 bfd0ed57
...@@ -1319,7 +1319,7 @@ static int pxa25x_udc_stop(struct usb_gadget*g, ...@@ -1319,7 +1319,7 @@ static int pxa25x_udc_stop(struct usb_gadget*g,
local_irq_disable(); local_irq_disable();
dev->pullup = 0; dev->pullup = 0;
pullup(dev); pullup(dev);
stop_activity(dev, driver); stop_activity(dev, NULL);
local_irq_enable(); local_irq_enable();
if (!IS_ERR_OR_NULL(dev->transceiver)) if (!IS_ERR_OR_NULL(dev->transceiver))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册