diff options
author | Pawel Laszczak <pawell@cadence.com> | 2020-12-10 17:22:58 +0100 |
---|---|---|
committer | Peter Chen <peter.chen@nxp.com> | 2020-12-29 12:36:13 +0800 |
commit | 826a9584d14a7561f44eac86fe7d3c75c6bd2ad9 (patch) | |
tree | 1037c2b78bd885e7048d3eeb025f8273d338089c /drivers/usb/cdns3/cdns3-imx.c | |
parent | 16e3610154d0c992a0558d684213201f5355bd76 (diff) | |
download | linux-stable-826a9584d14a7561f44eac86fe7d3c75c6bd2ad9.tar.gz linux-stable-826a9584d14a7561f44eac86fe7d3c75c6bd2ad9.tar.bz2 linux-stable-826a9584d14a7561f44eac86fe7d3c75c6bd2ad9.zip |
usb: cdnsp: Fix for undefined reference to `usb_hcd_is_primary_hcd'
Patch fixes the following compilation error:
ld: drivers/usb/cdns3/host.o: in function `xhci_cdns3_suspend_quirk':
host.c:(.text+0x9): undefined reference to `usb_hcd_is_primary_hcd'
This reference to 'usb_hdc_is_primary_hcd' is from hcd_to_xhci(),
which is being built as a loadable module:
int xhci_cdns3_suspend_quirk(struct usb_hcd *hcd)
{
struct xhci_hcd *xhci = hcd_to_xhci(hcd);
Issue occurrd for following kernel configuration:
CONFIG_USB_GADGET=y
CONFIG_USB_SUPPORT=y
CONFIG_USB_COMMON=y
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB=m
CONFIG_USB_CDNS_SUPPORT=y
CONFIG_USB_CDNS_HOST=y
CONFIG_USB_CDNS3=m
CONFIG_USB_CDNS3_GADGET=y
CONFIG_USB_CDNS3_HOST=y
Signed-off-by: Pawel Laszczak <pawell@cadence.com>
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions