Lines Matching defs:op
269 static int __devinit bpp_probe(struct platform_device *op, const struct of_device_id *match)
278 irq = op->archdata.irqs[0];
279 base = of_ioremap(&op->resource[0], 0,
280 resource_size(&op->resource[0]),
285 size = resource_size(&op->resource[0]);
299 p->dev = &op->dev;
316 dev_set_drvdata(&op->dev, p);
329 of_iounmap(&op->resource[0], base, size);
334 static int __devexit bpp_remove(struct platform_device *op)
336 struct parport *p = dev_get_drvdata(&op->dev);
346 of_iounmap(&op->resource[0], (void __iomem *) p->base, p->size);
350 dev_set_drvdata(&op->dev, NULL);