Lines Matching refs:op
276 static int __devinit bw2_probe(struct platform_device *op, const struct of_device_id *match)
278 struct device_node *dp = op->dev.of_node;
283 info = framebuffer_alloc(sizeof(struct bw2_par), &op->dev);
292 info->fix.smem_start = op->resource[0].start;
293 par->which_io = op->resource[0].flags & IORESOURCE_BITS;
304 par->regs = of_ioremap(&op->resource[0], BWTWO_REGISTER_OFFSET,
320 info->screen_base = of_ioremap(&op->resource[0], 0,
333 dev_set_drvdata(&op->dev, info);
341 of_iounmap(&op->resource[0], info->screen_base, info->fix.smem_len);
344 of_iounmap(&op->resource[0], par->regs, sizeof(struct bw2_regs));
353 static int __devexit bw2_remove(struct platform_device *op)
355 struct fb_info *info = dev_get_drvdata(&op->dev);
360 of_iounmap(&op->resource[0], par->regs, sizeof(struct bw2_regs));
361 of_iounmap(&op->resource[0], info->screen_base, info->fix.smem_len);
365 dev_set_drvdata(&op->dev, NULL);