提交 c4d9d598 编写于 作者: C Christoph Hellwig

au1100fb: remove a bogus dma_free_nonconsistent call

au1100fb is using managed dma allocations, so it doesn't need to
explicitly free the dma memory in the error path (and if it did
it would have to use the managed version).
Signed-off-by: NChristoph Hellwig <hch@lst.de>
Acked-by: NBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
上级 2e7d1098
...@@ -532,10 +532,6 @@ static int au1100fb_drv_probe(struct platform_device *dev) ...@@ -532,10 +532,6 @@ static int au1100fb_drv_probe(struct platform_device *dev)
clk_disable_unprepare(fbdev->lcdclk); clk_disable_unprepare(fbdev->lcdclk);
clk_put(fbdev->lcdclk); clk_put(fbdev->lcdclk);
} }
if (fbdev->fb_mem) {
dma_free_noncoherent(&dev->dev, fbdev->fb_len, fbdev->fb_mem,
fbdev->fb_phys);
}
if (fbdev->info.cmap.len != 0) { if (fbdev->info.cmap.len != 0) {
fb_dealloc_cmap(&fbdev->info.cmap); fb_dealloc_cmap(&fbdev->info.cmap);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册