Lines Matching defs:ofdev
70 static int __devexit sja1000_ofp_remove(struct platform_device *ofdev)
72 struct net_device *dev = dev_get_drvdata(&ofdev->dev);
74 struct device_node *np = ofdev->dev.of_node;
77 dev_set_drvdata(&ofdev->dev, NULL);
90 static int __devinit sja1000_ofp_probe(struct platform_device *ofdev,
93 struct device_node *np = ofdev->dev.of_node;
103 dev_err(&ofdev->dev, "invalid address\n");
110 dev_err(&ofdev->dev, "couldn't request %#llx..%#llx\n",
118 dev_err(&ofdev->dev, "couldn't ioremap %#llx..%#llx\n",
127 dev_err(&ofdev->dev, "no irq found\n");
182 dev_info(&ofdev->dev,
187 dev_set_drvdata(&ofdev->dev, dev);
188 SET_NETDEV_DEV(dev, &ofdev->dev);
192 dev_err(&ofdev->dev, "registering %s failed (err=%d)\n",