Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d7554226 authored by Afzal Mohammed's avatar Afzal Mohammed Committed by Felipe Balbi
Browse files

Revert "usb: musb: dsps: remove explicit NOP device creation"



This reverts commit d8c3ef25.

Above mentioned change was made along with multi usb phy change and
adding DT support for nop transceiver. But other two changes did not
make it to mainline. This in effect makes dsps musb wrapper unusable
even for single instance.

Hence revert it so that at least single instance can be supported.

Cc: stable@vger.kernel.org # v3.7
Signed-off-by: default avatarAfzal Mohammed <afzal@ti.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent baef653a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -411,7 +411,8 @@ static int dsps_musb_init(struct musb *musb)
	/* mentor core register starts at offset of 0x400 from musb base */
	musb->mregs += wrp->musb_core_offset;

	/* Get the NOP PHY */
	/* NOP driver needs change if supporting dual instance */
	usb_nop_xceiv_register();
	musb->xceiv = usb_get_phy(USB_PHY_TYPE_USB2);
	if (IS_ERR_OR_NULL(musb->xceiv))
		return -ENODEV;