提交 74a7b362 编写于 作者: S Sachin Kamat 提交者: Tomi Valkeinen

video: mb862xx: Remove redundant dev_set_drvdata

Driver core sets driver data to NULL upon failure or remove.
Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
Acked-by: NAnatolij Gustschin <agust@denx.de>
Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
上级 064f29e0
......@@ -781,7 +781,6 @@ static int of_platform_mb862xx_probe(struct platform_device *ofdev)
irqdisp:
irq_dispose_mapping(par->irq);
fbrel:
dev_set_drvdata(dev, NULL);
framebuffer_release(info);
return ret;
}
......@@ -814,7 +813,6 @@ static int of_platform_mb862xx_remove(struct platform_device *ofdev)
iounmap(par->mmio_base);
iounmap(par->fb_base);
dev_set_drvdata(&ofdev->dev, NULL);
release_mem_region(par->res->start, res_size);
framebuffer_release(fbi);
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册