Lines Matching refs:op
532 static void leo_unmap_regs(struct platform_device *op, struct fb_info *info,
536 of_iounmap(&op->resource[0], par->lc_ss0_usr, 0x1000);
538 of_iounmap(&op->resource[0], par->ld_ss0, 0x1000);
540 of_iounmap(&op->resource[0], par->ld_ss1, 0x1000);
542 of_iounmap(&op->resource[0], par->lx_krn, 0x1000);
544 of_iounmap(&op->resource[0],
547 of_iounmap(&op->resource[0], info->screen_base, 0x800000);
550 static int __devinit leo_probe(struct platform_device *op,
553 struct device_node *dp = op->dev.of_node;
558 info = framebuffer_alloc(sizeof(struct leo_par), &op->dev);
567 info->fix.smem_start = op->resource[0].start;
568 par->which_io = op->resource[0].flags & IORESOURCE_BITS;
578 of_ioremap(&op->resource[0], LEO_OFF_LC_SS0_USR,
581 of_ioremap(&op->resource[0], LEO_OFF_LD_SS0,
584 of_ioremap(&op->resource[0], LEO_OFF_LD_SS1,
587 of_ioremap(&op->resource[0], LEO_OFF_LX_KRN,
590 of_ioremap(&op->resource[0], LEO_OFF_LX_CURSOR,
593 of_ioremap(&op->resource[0], LEO_OFF_SS0,
621 dev_set_drvdata(&op->dev, info);
633 leo_unmap_regs(op, info, par);
640 static int __devexit leo_remove(struct platform_device *op)
642 struct fb_info *info = dev_get_drvdata(&op->dev);
648 leo_unmap_regs(op, info, par);
652 dev_set_drvdata(&op->dev, NULL);