浏览代码

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: Felipe Balbi <balbi@ti.com>
Felipe Balbi 11 年之前
父节点
当前提交
d7343161fd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/usb/gadget/udc/pxa25x_udc.c

+ 1 - 1
drivers/usb/gadget/udc/pxa25x_udc.c

@@ -1319,7 +1319,7 @@ static int pxa25x_udc_stop(struct usb_gadget*g,
 	local_irq_disable();
 	dev->pullup = 0;
 	pullup(dev);
-	stop_activity(dev, driver);
+	stop_activity(dev, NULL);
 	local_irq_enable();
 
 	if (!IS_ERR_OR_NULL(dev->transceiver))