Lines Matching full:dwc2
59 static const char dwc2_driver_name[] = "dwc2-pci";
62 struct platform_device *dwc2; member
66 static int dwc2_pci_quirks(struct pci_dev *pdev, struct platform_device *dwc2) in dwc2_pci_quirks() argument
74 return platform_device_add_properties(dwc2, properties); in dwc2_pci_quirks()
90 platform_device_unregister(glue->dwc2); in dwc2_pci_remove()
99 struct platform_device *dwc2; in dwc2_pci_probe() local
120 dwc2 = platform_device_alloc("dwc2", PLATFORM_DEVID_AUTO); in dwc2_pci_probe()
121 if (!dwc2) { in dwc2_pci_probe()
122 dev_err(dev, "couldn't allocate dwc2 device\n"); in dwc2_pci_probe()
131 res[0].name = "dwc2"; in dwc2_pci_probe()
135 res[1].name = "dwc2"; in dwc2_pci_probe()
138 ret = platform_device_add_resources(dwc2, res, ARRAY_SIZE(res)); in dwc2_pci_probe()
140 dev_err(dev, "couldn't add resources to dwc2 device\n"); in dwc2_pci_probe()
144 dwc2->dev.parent = dev; in dwc2_pci_probe()
146 ret = dwc2_pci_quirks(pci, dwc2); in dwc2_pci_probe()
156 ret = platform_device_add(dwc2); in dwc2_pci_probe()
158 dev_err(dev, "failed to register dwc2 device\n"); in dwc2_pci_probe()
163 glue->dwc2 = dwc2; in dwc2_pci_probe()
169 platform_device_put(dwc2); in dwc2_pci_probe()