Lines Matching full:dwc3
3 * dwc3-haps.c - Synopsys HAPS PCI Specific glue layer
20 * @dwc3: child dwc3 platform_device
24 struct platform_device *dwc3; member
60 dwc->dwc3 = platform_device_alloc("dwc3", PLATFORM_DEVID_AUTO); in dwc3_haps_probe()
61 if (!dwc->dwc3) in dwc3_haps_probe()
75 ret = platform_device_add_resources(dwc->dwc3, res, ARRAY_SIZE(res)); in dwc3_haps_probe()
77 dev_err(dev, "couldn't add resources to dwc3 device\n"); in dwc3_haps_probe()
82 dwc->dwc3->dev.parent = dev; in dwc3_haps_probe()
84 ret = device_add_software_node(&dwc->dwc3->dev, &dwc3_haps_swnode); in dwc3_haps_probe()
88 ret = platform_device_add(dwc->dwc3); in dwc3_haps_probe()
90 dev_err(dev, "failed to register dwc3 device\n"); in dwc3_haps_probe()
98 device_remove_software_node(&dwc->dwc3->dev); in dwc3_haps_probe()
99 platform_device_put(dwc->dwc3); in dwc3_haps_probe()
107 device_remove_software_node(&dwc->dwc3->dev); in dwc3_haps_remove()
108 platform_device_unregister(dwc->dwc3); in dwc3_haps_remove()
138 .name = "dwc3-haps",