diff options
| author | 2020-12-07 11:32:20 +0100 | |
|---|---|---|
| committer | 2020-12-29 12:36:13 +0800 | |
| commit | 394c3a144de89e994c8a2c5ba5dc64fa4e5aa870 (patch) | |
| tree | 392480a1bd5bbaf285c68735f3251a50be2e4e03 /drivers/usb/cdns3/cdns3-plat.c | |
| parent | usb: cdns3: Split core.c into cdns3-plat and core.c file (diff) | |
| download | linux-dev-394c3a144de89e994c8a2c5ba5dc64fa4e5aa870.tar.xz linux-dev-394c3a144de89e994c8a2c5ba5dc64fa4e5aa870.zip | |
usb: cdns3: Moves reusable code to separate module
Patch moves common reusable code used by cdns3 and cdnsp driver
to cdns-usb-common library. This library include core.c, drd.c
and host.c files.
Signed-off-by: Pawel Laszczak <pawell@cadence.com>
Tested-by: Aswath Govindraju <a-govindraju@ti.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-plat.c')
| -rw-r--r-- | drivers/usb/cdns3/cdns3-plat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/cdns3/cdns3-plat.c b/drivers/usb/cdns3/cdns3-plat.c index 5dcb83af6c86..d7b07f1729d5 100644 --- a/drivers/usb/cdns3/cdns3-plat.c +++ b/drivers/usb/cdns3/cdns3-plat.c @@ -18,6 +18,7 @@ #include <linux/pm_runtime.h> #include "core.h" +#include "gadget-export.h" static int set_phy_power_on(struct cdns3 *cdns) { @@ -134,6 +135,7 @@ static int cdns3_plat_probe(struct platform_device *pdev) if (ret) goto err_phy_power_on; + cdns->gadget_init = cdns3_gadget_init; ret = cdns3_init(cdns); if (ret) goto err_cdns_init; |
