Lines Matching refs:op
252 static int __devinit p9100_probe(struct platform_device *op, const struct of_device_id *match)
254 struct device_node *dp = op->dev.of_node;
259 info = framebuffer_alloc(sizeof(struct p9100_par), &op->dev);
269 info->fix.smem_start = op->resource[2].start;
270 par->which_io = op->resource[2].flags & IORESOURCE_BITS;
280 par->regs = of_ioremap(&op->resource[0], 0,
287 info->screen_base = of_ioremap(&op->resource[2], 0,
305 dev_set_drvdata(&op->dev, info);
317 of_iounmap(&op->resource[2], info->screen_base, info->fix.smem_len);
320 of_iounmap(&op->resource[0], par->regs, sizeof(struct p9100_regs));
329 static int __devexit p9100_remove(struct platform_device *op)
331 struct fb_info *info = dev_get_drvdata(&op->dev);
337 of_iounmap(&op->resource[0], par->regs, sizeof(struct p9100_regs));
338 of_iounmap(&op->resource[2], info->screen_base, info->fix.smem_len);
342 dev_set_drvdata(&op->dev, NULL);