Lines Matching refs:op
349 static int cg3_probe(struct platform_device *op) in cg3_probe() argument
351 struct device_node *dp = op->dev.of_node; in cg3_probe()
356 info = framebuffer_alloc(sizeof(struct cg3_par), &op->dev); in cg3_probe()
365 info->fix.smem_start = op->resource[0].start; in cg3_probe()
366 par->which_io = op->resource[0].flags & IORESOURCE_BITS; in cg3_probe()
381 par->regs = of_ioremap(&op->resource[0], CG3_REGS_OFFSET, in cg3_probe()
388 info->screen_base = of_ioremap(&op->resource[0], CG3_RAM_OFFSET, in cg3_probe()
413 dev_set_drvdata(&op->dev, info); in cg3_probe()
424 of_iounmap(&op->resource[0], info->screen_base, info->fix.smem_len); in cg3_probe()
427 of_iounmap(&op->resource[0], par->regs, sizeof(struct cg3_regs)); in cg3_probe()
436 static int cg3_remove(struct platform_device *op) in cg3_remove() argument
438 struct fb_info *info = dev_get_drvdata(&op->dev); in cg3_remove()
444 of_iounmap(&op->resource[0], par->regs, sizeof(struct cg3_regs)); in cg3_remove()
445 of_iounmap(&op->resource[0], info->screen_base, info->fix.smem_len); in cg3_remove()