|
@@ -19,6 +19,7 @@
|
|
|
#include <linux/kernel.h>
|
|
|
#include <linux/module.h>
|
|
|
#include <linux/platform_device.h>
|
|
|
+#include <linux/usb/usb_phy_generic.h>
|
|
|
|
|
|
#include "musb_core.h"
|
|
|
|
|
@@ -80,6 +81,7 @@ static struct musb_hdrc_platform_data jz4740_musb_platform_data = {
|
|
|
|
|
|
static int jz4740_musb_init(struct musb *musb)
|
|
|
{
|
|
|
+ usb_phy_generic_register();
|
|
|
musb->xceiv = usb_get_phy(USB_PHY_TYPE_USB2);
|
|
|
if (!musb->xceiv) {
|
|
|
pr_err("HS UDC: no transceiver configured\n");
|
|
@@ -182,6 +184,7 @@ static int jz4740_remove(struct platform_device *pdev)
|
|
|
struct jz4740_glue *glue = platform_get_drvdata(pdev);
|
|
|
|
|
|
platform_device_unregister(glue->musb);
|
|
|
+ usb_phy_generic_unregister(pdev);
|
|
|
clk_disable_unprepare(glue->clk);
|
|
|
|
|
|
return 0;
|