diff options
author | Pawel Laszczak <pawell@cadence.com> | 2020-12-07 13:32:20 +0300 |
---|---|---|
committer | Peter Chen <peter.chen@nxp.com> | 2020-12-29 07:36:13 +0300 |
commit | 394c3a144de89e994c8a2c5ba5dc64fa4e5aa870 (patch) | |
tree | 392480a1bd5bbaf285c68735f3251a50be2e4e03 /drivers/usb/cdns3/cdns3-plat.c | |
parent | f738957277bad824b422399a214b630d7832f884 (diff) | |
download | linux-394c3a144de89e994c8a2c5ba5dc64fa4e5aa870.tar.xz |
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; |