Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: musb: jz4740: Let the platform probe the PHY

By registering a generic USB PHY from within the driver, we may shadow
the USB PHY registered by the platform, which might be different.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Paul Cercueil and committed by
Greg Kroah-Hartman
82257c73 70833b84

-2
-2
drivers/usb/musb/jz4740.c
··· 74 74 75 75 static int jz4740_musb_init(struct musb *musb) 76 76 { 77 - usb_phy_generic_register(); 78 77 musb->xceiv = usb_get_phy(USB_PHY_TYPE_USB2); 79 78 if (IS_ERR(musb->xceiv)) { 80 79 pr_err("HS UDC: no transceiver configured\n"); ··· 182 183 struct jz4740_glue *glue = platform_get_drvdata(pdev); 183 184 184 185 platform_device_unregister(glue->musb); 185 - usb_phy_generic_unregister(pdev); 186 186 clk_disable_unprepare(glue->clk); 187 187 188 188 return 0;