Lines Matching full:dwc2
29 static const char dwc2_driver_name[] = "dwc2-pci";
32 struct platform_device *dwc2; member
46 platform_device_unregister(glue->dwc2); in dwc2_pci_remove()
55 struct platform_device *dwc2; in dwc2_pci_probe() local
76 dwc2 = platform_device_alloc("dwc2", PLATFORM_DEVID_AUTO); in dwc2_pci_probe()
77 if (!dwc2) { in dwc2_pci_probe()
78 dev_err(dev, "couldn't allocate dwc2 device\n"); in dwc2_pci_probe()
87 res[0].name = "dwc2"; in dwc2_pci_probe()
91 res[1].name = "dwc2"; in dwc2_pci_probe()
94 ret = platform_device_add_resources(dwc2, res, ARRAY_SIZE(res)); in dwc2_pci_probe()
96 dev_err(dev, "couldn't add resources to dwc2 device\n"); in dwc2_pci_probe()
100 dwc2->dev.parent = dev; in dwc2_pci_probe()
108 ret = platform_device_add(dwc2); in dwc2_pci_probe()
110 dev_err(dev, "failed to register dwc2 device\n"); in dwc2_pci_probe()
115 glue->dwc2 = dwc2; in dwc2_pci_probe()
121 platform_device_put(dwc2); in dwc2_pci_probe()