|
@@ -1085,7 +1085,6 @@ int usbhs_mod_gadget_probe(struct usbhs_priv *priv)
|
|
ret = -ENOMEM;
|
|
ret = -ENOMEM;
|
|
goto usbhs_mod_gadget_probe_err_gpriv;
|
|
goto usbhs_mod_gadget_probe_err_gpriv;
|
|
}
|
|
}
|
|
- spin_lock_init(&uep->lock);
|
|
|
|
|
|
|
|
gpriv->transceiver = usb_get_phy(USB_PHY_TYPE_UNDEFINED);
|
|
gpriv->transceiver = usb_get_phy(USB_PHY_TYPE_UNDEFINED);
|
|
dev_info(dev, "%stransceiver found\n",
|
|
dev_info(dev, "%stransceiver found\n",
|
|
@@ -1135,6 +1134,7 @@ int usbhs_mod_gadget_probe(struct usbhs_priv *priv)
|
|
uep->ep.name = uep->ep_name;
|
|
uep->ep.name = uep->ep_name;
|
|
uep->ep.ops = &usbhsg_ep_ops;
|
|
uep->ep.ops = &usbhsg_ep_ops;
|
|
INIT_LIST_HEAD(&uep->ep.ep_list);
|
|
INIT_LIST_HEAD(&uep->ep.ep_list);
|
|
|
|
+ spin_lock_init(&uep->lock);
|
|
|
|
|
|
/* init DCP */
|
|
/* init DCP */
|
|
if (usbhsg_is_dcp(uep)) {
|
|
if (usbhsg_is_dcp(uep)) {
|