Lines Matching full:xhci
48 struct platform_device *xhci; in dwc3_host_init() local
72 xhci = platform_device_alloc("xhci-hcd", PLATFORM_DEVID_AUTO); in dwc3_host_init()
73 if (!xhci) { in dwc3_host_init()
74 dev_err(dwc->dev, "couldn't allocate xHCI device\n"); in dwc3_host_init()
78 xhci->dev.parent = dwc->dev; in dwc3_host_init()
79 ACPI_COMPANION_SET(&xhci->dev, ACPI_COMPANION(dwc->dev)); in dwc3_host_init()
81 dwc->xhci = xhci; in dwc3_host_init()
83 ret = platform_device_add_resources(xhci, dwc->xhci_resources, in dwc3_host_init()
86 dev_err(dwc->dev, "couldn't add resources to xHCI device\n"); in dwc3_host_init()
105 * This following flag tells XHCI to do just that. in dwc3_host_init()
111 ret = platform_device_add_properties(xhci, props); in dwc3_host_init()
113 dev_err(dwc->dev, "failed to add properties to xHCI\n"); in dwc3_host_init()
118 ret = platform_device_add(xhci); in dwc3_host_init()
120 dev_err(dwc->dev, "failed to register xHCI device\n"); in dwc3_host_init()
126 platform_device_put(xhci); in dwc3_host_init()
132 platform_device_unregister(dwc->xhci); in dwc3_host_exit()
133 dwc->xhci = NULL; in dwc3_host_exit()