You need to sign in or sign up before continuing.
提交 af9501f6 编写于 作者: F Felipe Balbi

usb: gadget: udc: at91: 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>
上级 21090f06
......@@ -1657,9 +1657,9 @@ static int at91_stop(struct usb_gadget *gadget,
at91_udp_write(udc, AT91_UDP_IDR, ~0);
spin_unlock_irqrestore(&udc->lock, flags);
DBG("unbound from %s\n", udc->driver->driver.name);
udc->driver = NULL;
DBG("unbound from %s\n", driver->driver.name);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册