Lines Matching defs:ofdev
104 static int __devinit fs_enet_mdio_probe(struct platform_device *ofdev,
127 ret = of_address_to_resource(ofdev->dev.of_node, 0, &res);
138 clock = get_bus_freq(ofdev->dev.of_node);
141 dev_warn(&ofdev->dev, "could not determine IPS clock\n");
154 dev_err(&ofdev->dev,
172 new_bus->parent = &ofdev->dev;
173 dev_set_drvdata(&ofdev->dev, new_bus);
175 ret = of_mdiobus_register(new_bus, ofdev->dev.of_node);
182 dev_set_drvdata(&ofdev->dev, NULL);
195 static int fs_enet_mdio_remove(struct platform_device *ofdev)
197 struct mii_bus *bus = dev_get_drvdata(&ofdev->dev);
201 dev_set_drvdata(&ofdev->dev, NULL);