Lines Matching refs:op
51 int uflash_devinit(struct platform_device *op, struct device_node *dp)
55 if (op->resource[1].flags) {
60 dp->full_name, (unsigned long long)op->resource[0].start);
74 up->map.size = resource_size(&op->resource[0]);
80 up->map.phys = op->resource[0].start;
82 up->map.virt = of_ioremap(&op->resource[0], 0, up->map.size,
96 of_iounmap(&op->resource[0], up->map.virt, up->map.size);
106 dev_set_drvdata(&op->dev, up);
111 static int __devinit uflash_probe(struct platform_device *op, const struct of_device_id *match)
113 struct device_node *dp = op->dev.of_node;
121 return uflash_devinit(op, dp);
124 static int __devexit uflash_remove(struct platform_device *op)
126 struct uflash_dev *up = dev_get_drvdata(&op->dev);
133 of_iounmap(&op->resource[0], up->map.virt, up->map.size);