Lines Matching refs:ofdev
78 struct platform_device *ofdev, in fsl_usb2_device_register() argument
83 const struct resource *res = ofdev->resource; in fsl_usb2_device_register()
84 unsigned int num = ofdev->num_resources; in fsl_usb2_device_register()
93 pdev->dev.parent = &ofdev->dev; in fsl_usb2_device_register()
95 pdev->dev.coherent_dma_mask = ofdev->dev.coherent_dma_mask; in fsl_usb2_device_register()
98 pdev->dev.dma_mask = &ofdev->dev.coherent_dma_mask; in fsl_usb2_device_register()
174 static int fsl_usb2_mph_dr_of_probe(struct platform_device *ofdev) in fsl_usb2_mph_dr_of_probe() argument
176 struct device_node *np = ofdev->dev.of_node; in fsl_usb2_mph_dr_of_probe()
188 match = of_match_device(fsl_usb2_mph_dr_of_match, &ofdev->dev); in fsl_usb2_mph_dr_of_probe()
244 dev_warn(&ofdev->dev, "Could not get controller version\n"); in fsl_usb2_mph_dr_of_probe()
252 usb_dev = fsl_usb2_device_register(ofdev, pdata, in fsl_usb2_mph_dr_of_probe()
255 dev_err(&ofdev->dev, "Can't register usb device\n"); in fsl_usb2_mph_dr_of_probe()
269 static int fsl_usb2_mph_dr_of_remove(struct platform_device *ofdev) in fsl_usb2_mph_dr_of_remove() argument
271 device_for_each_child(&ofdev->dev, NULL, __unregister_subdev); in fsl_usb2_mph_dr_of_remove()