Lines Matching refs:ofdev
79 struct platform_device *ofdev,
84 const struct resource *res = ofdev->resource;
85 unsigned int num = ofdev->num_resources;
94 pdev->dev.parent = &ofdev->dev;
96 pdev->dev.coherent_dma_mask = ofdev->dev.coherent_dma_mask;
99 pdev->dev.dma_mask = &ofdev->dev.coherent_dma_mask;
116 device_set_of_node_from_dev(&pdev->dev, &ofdev->dev);
177 static int fsl_usb2_mph_dr_of_probe(struct platform_device *ofdev)
179 struct device_node *np = ofdev->dev.of_node;
191 match = of_match_device(fsl_usb2_mph_dr_of_match, &ofdev->dev);
244 dev_warn(&ofdev->dev, "Could not get controller version\n");
252 usb_dev = fsl_usb2_device_register(ofdev, pdata,
255 dev_err(&ofdev->dev, "Can't register usb device\n");
269 static void fsl_usb2_mph_dr_of_remove(struct platform_device *ofdev)
271 device_for_each_child(&ofdev->dev, NULL, __unregister_subdev);