Lines Matching refs:op
349 static int __devinit cg3_probe(struct platform_device *op,
352 struct device_node *dp = op->dev.of_node;
357 info = framebuffer_alloc(sizeof(struct cg3_par), &op->dev);
366 info->fix.smem_start = op->resource[0].start;
367 par->which_io = op->resource[0].flags & IORESOURCE_BITS;
382 par->regs = of_ioremap(&op->resource[0], CG3_REGS_OFFSET,
389 info->screen_base = of_ioremap(&op->resource[0], CG3_RAM_OFFSET,
413 dev_set_drvdata(&op->dev, info);
424 of_iounmap(&op->resource[0], info->screen_base, info->fix.smem_len);
427 of_iounmap(&op->resource[0], par->regs, sizeof(struct cg3_regs));
436 static int __devexit cg3_remove(struct platform_device *op)
438 struct fb_info *info = dev_get_drvdata(&op->dev);
444 of_iounmap(&op->resource[0], par->regs, sizeof(struct cg3_regs));
445 of_iounmap(&op->resource[0], info->screen_base, info->fix.smem_len);
449 dev_set_drvdata(&op->dev, NULL);