]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
au1100fb: remove a bogus dma_free_nonconsistent call
authorChristoph Hellwig <hch@lst.de>
Wed, 14 Jun 2017 08:37:32 +0000 (10:37 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 28 Jun 2017 13:54:57 +0000 (06:54 -0700)
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: Christoph Hellwig <hch@lst.de>
Acked-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/au1100fb.c

index 35df2c1a8a63c1d6f99832d52a0363f0ba3bc61e..8de42f617d16792840515655b9457500ff5d4286 100644 (file)
@@ -532,10 +532,6 @@ failed:
                clk_disable_unprepare(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) {
                fb_dealloc_cmap(&fbdev->info.cmap);
        }