summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorPatrice Chotard <patrice.chotard@st.com>2017-07-24 15:07:03 (GMT)
committerMarek Vasut <marex@denx.de>2017-07-28 21:34:42 (GMT)
commit623b7aca1f82bf1dee089c77f9a1020e80abaccc (patch)
tree3de7f5b0ae655d092942769d3676f460e841a08a /drivers
parentd9fb7bece056522d659d9e17b73b3fd5549817c3 (diff)
downloadu-boot-fsl-qoriq-623b7aca1f82bf1dee089c77f9a1020e80abaccc.tar.xz
dm: usb: host: xhci-dwc3: add missing #ifdef CONFIG_DM_USB
Add CONFIG_DM_USB flag to avoid following compilation errors detected by buildman : +drivers/usb/host/built-in.o: In function `xhci_dwc3_remove': +drivers/usb/host/xhci-dwc3.c:168: undefined reference to `xhci_deregister' +drivers/usb/host/built-in.o: In function `xhci_dwc3_probe': +drivers/usb/host/xhci-dwc3.c:145: undefined reference to `usb_get_dr_mode' +drivers/usb/host/xhci-dwc3.c:152: undefined reference to `xhci_register' introduced by patch d5c3f014da3 "usb: host: xhci-dwc3: Convert driver to DM" Signed-off-by: Patrice Chotard <patrice.chotard@st.com> Reported-by: Ran Wang <ran.wang_1@nxp.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/host/xhci-dwc3.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-dwc3.c b/drivers/usb/host/xhci-dwc3.c
index 374fe74..541a785 100644
--- a/drivers/usb/host/xhci-dwc3.c
+++ b/drivers/usb/host/xhci-dwc3.c
@@ -111,6 +111,7 @@ void dwc3_set_fladj(struct dwc3 *dwc3_reg, u32 val)
GFLADJ_30MHZ(val));
}
+#ifdef CONFIG_DM_USB
static int xhci_dwc3_probe(struct udevice *dev)
{
struct xhci_dwc3_platdata *plat = dev_get_platdata(dev);
@@ -184,3 +185,4 @@ U_BOOT_DRIVER(xhci_dwc3) = {
.platdata_auto_alloc_size = sizeof(struct xhci_dwc3_platdata),
.flags = DM_FLAG_ALLOC_PRIV_DMA,
};
+#endif