Lines Matching refs:op
449 static void cg14_unmap_regs(struct platform_device *op, struct fb_info *info,
453 of_iounmap(&op->resource[0],
456 of_iounmap(&op->resource[0],
459 of_iounmap(&op->resource[0],
462 of_iounmap(&op->resource[1],
466 static int __devinit cg14_probe(struct platform_device *op, const struct of_device_id *match)
468 struct device_node *dp = op->dev.of_node;
473 info = framebuffer_alloc(sizeof(struct cg14_par), &op->dev);
493 info->fix.smem_start = op->resource[0].start;
494 par->iospace = op->resource[0].flags & IORESOURCE_BITS;
496 info->fix.smem_start = op->resource[1].start;
497 par->iospace = op->resource[0].flags & IORESOURCE_BITS;
500 par->regs = of_ioremap(&op->resource[0], 0,
502 par->clut = of_ioremap(&op->resource[0], CG14_CLUT1,
504 par->cursor = of_ioremap(&op->resource[0], CG14_CURSORREGS,
507 info->screen_base = of_ioremap(&op->resource[1], 0,
513 is_8mb = (((op->resource[1].end - op->resource[1].start) + 1) ==
527 (op->resource[0].start -
528 op->resource[1].start);
554 dev_set_drvdata(&op->dev, info);
567 cg14_unmap_regs(op, info, par);
573 static int __devexit cg14_remove(struct platform_device *op)
575 struct fb_info *info = dev_get_drvdata(&op->dev);
581 cg14_unmap_regs(op, info, par);
585 dev_set_drvdata(&op->dev, NULL);