Lines Matching defs:ofdev
26 int __devinit tah_attach(struct platform_device *ofdev, int channel)
28 struct tah_instance *dev = dev_get_drvdata(&ofdev->dev);
38 void tah_detach(struct platform_device *ofdev, int channel)
40 struct tah_instance *dev = dev_get_drvdata(&ofdev->dev);
47 void tah_reset(struct platform_device *ofdev)
49 struct tah_instance *dev = dev_get_drvdata(&ofdev->dev);
61 ofdev->dev.of_node->full_name);
69 int tah_get_regs_len(struct platform_device *ofdev)
75 void *tah_dump_regs(struct platform_device *ofdev, void *buf)
77 struct tah_instance *dev = dev_get_drvdata(&ofdev->dev);
90 static int __devinit tah_probe(struct platform_device *ofdev,
93 struct device_node *np = ofdev->dev.of_node;
107 dev->ofdev = ofdev;
125 dev_set_drvdata(&ofdev->dev, dev);
128 tah_reset(ofdev);
131 "TAH %s initialized\n", ofdev->dev.of_node->full_name);
142 static int __devexit tah_remove(struct platform_device *ofdev)
144 struct tah_instance *dev = dev_get_drvdata(&ofdev->dev);
146 dev_set_drvdata(&ofdev->dev, NULL);