Lines Matching refs:op
275 static int bw2_probe(struct platform_device *op) in bw2_probe() argument
277 struct device_node *dp = op->dev.of_node; in bw2_probe()
282 info = framebuffer_alloc(sizeof(struct bw2_par), &op->dev); in bw2_probe()
291 info->fix.smem_start = op->resource[0].start; in bw2_probe()
292 par->which_io = op->resource[0].flags & IORESOURCE_BITS; in bw2_probe()
303 par->regs = of_ioremap(&op->resource[0], BWTWO_REGISTER_OFFSET, in bw2_probe()
319 info->screen_base = of_ioremap(&op->resource[0], 0, in bw2_probe()
334 dev_set_drvdata(&op->dev, info); in bw2_probe()
342 of_iounmap(&op->resource[0], info->screen_base, info->fix.smem_len); in bw2_probe()
345 of_iounmap(&op->resource[0], par->regs, sizeof(struct bw2_regs)); in bw2_probe()
354 static int bw2_remove(struct platform_device *op) in bw2_remove() argument
356 struct fb_info *info = dev_get_drvdata(&op->dev); in bw2_remove()
361 of_iounmap(&op->resource[0], par->regs, sizeof(struct bw2_regs)); in bw2_remove()
362 of_iounmap(&op->resource[0], info->screen_base, info->fix.smem_len); in bw2_remove()