Thread (13 messages) 13 messages, 5 authors, 2012-08-23

Re: [PATCH 2/5] drivers/video/bfin-t350mcqb-fb.c: use devm_ functions

From: Damien Cassou <hidden>
Date: 2012-07-31 16:18:31
Also in: kernel-janitors, lkml

On Tue, Jul 31, 2012 at 3:57 PM, Mike Frysinger [off-list ref] wrote:
On Tue, Jul 31, 2012 at 9:54 AM, Damien Cassou [off-list ref] wrote:
quoted
The various devm_ functions allocate memory that is released when a driver
detaches.  This patch uses these functions for data that is allocated in
the probe function of a platform device and is only freed in the remove
function.
Acked-by: Mike Frysinger <redacted>
This whole patch is invalid, because of this part:

-	info->fb_buffer = dma_alloc_coherent(NULL, fbinfo->fix.smem_len +
-				ACTIVE_VIDEO_MEM_OFFSET,
-				&info->dma_handle, GFP_KERNEL);
+	info->fb_buffer = dmam_alloc_coherent(&pdev->dev, NULL,
+					      fbinfo->fix.smem_len +
+					      ACTIVE_VIDEO_MEM_OFFSET,
+					      &info->dma_handle, GFP_KERNEL);


dmam_alloc_coherent() is called with 5 arguments but only accepts 4.

Please ignore this whole patch altogether.

I am sorry about that.

-- 
Damien Cassou
http://damiencassou.seasidehosting.st

"Lambdas are relegated to relative obscurity until Java makes them
popular by not having them." James Iry
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help