[PATCH] drivers/video/msm/mddi_client_dummy.c: use devm_kzalloc function

2012-08-28 Thread Damien Cassou
From: Damien Cassou The various devm_ functions allocate memory that is released when a driver detaches. This patch replaces the use of kzalloc by devm_kzalloc. Signed-off-by: Damien Cassou --- drivers/video/msm/mddi_client_dummy.c | 13 ++--- 1 file changed, 2 insertions(+), 11

Re: [PATCH 4/5] drivers/video/msm/mddi_client_dummy.c: use devm_ functions

2012-08-28 Thread Damien Cassou
used-variable] > > Please remove the 'int ret;' line above as well. Thank you for your feedback. Please ignore this thread and patch. I've just sent a new email with corrected patch. -- Damien Cassou http://damiencassou.seasidehosting.st "Lambdas are relegated to rela

[PATCH 4/5] drivers/video/da8xx-fb.c: use devm_ functions

2012-07-31 Thread Damien Cassou
From: Damien Cassou 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. Signed-off-by: Damien Cassou --- drivers

[PATCH 5/5] drivers/video/ep93xx-fb.c: use devm_ functions

2012-07-31 Thread Damien Cassou
From: Damien Cassou 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. Signed-off-by: Damien Cassou --- drivers

[PATCH 1/5] drivers/video/bf537-lq035.c: use devm_ functions

2012-07-31 Thread Damien Cassou
From: Damien Cassou 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. Signed-off-by: Damien Cassou --- drivers

[PATCH 0/5] use devm_ functions

2012-07-31 Thread Damien Cassou
These patches introduce devm_ functions in some video drivers. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.

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

2012-07-31 Thread Damien Cassou
From: Damien Cassou 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. Signed-off-by: Damien Cassou --- drivers

[PATCH 3/5] drivers/video/cobalt_lcdfb.c: use devm_ functions

2012-07-31 Thread Damien Cassou
From: Damien Cassou 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. Signed-off-by: Damien Cassou --- drivers

Re: [PATCH 4/5] drivers/video/da8xx-fb.c: use devm_ functions

2012-07-31 Thread Damien Cassou
ar->irq, lcdc_irq_handler, 0, >> + DRIVER_NAME, par); The following message explains why this is problematic: http://marc.info/?l=kernel-janitors&m=134374464625591&w=2 Please ignore this whole patch altogether. Sorry about that. -- Damien Cassou http://damiencassou

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

2012-07-31 Thread Damien Cassou
On Tue, Jul 31, 2012 at 3:57 PM, Mike Frysinger wrote: > On Tue, Jul 31, 2012 at 9:54 AM, Damien Cassou wrote: >> The various devm_ functions allocate memory that is released when a driver >> detaches. This patch uses these functions for data that is allocated in >> th

[PATCH 5/5] drivers/video/exynos/exynos_dp_core.c: use devm_ functions

2012-07-31 Thread Damien Cassou
From: Damien Cassou 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. Signed-off-by: Damien Cassou --- drivers

[PATCH 0/5] use devm_ functions

2012-07-31 Thread Damien Cassou
These patches introduce devm_ functions in some video drivers. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.

[PATCH 4/5] drivers/video/exynos/exynos_mipi_dsi.c: use devm_ functions

2012-07-31 Thread Damien Cassou
From: Damien Cassou 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. Signed-off-by: Damien Cassou --- drivers

[PATCH 1/5] drivers/video/fsl-diu-fb.c: use devm_ functions

2012-07-31 Thread Damien Cassou
From: Damien Cassou 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. Signed-off-by: Damien Cassou --- drivers

[PATCH 2/5] drivers/video/gbefb.c: use devm_ functions

2012-07-31 Thread Damien Cassou
From: Damien Cassou 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. Signed-off-by: Damien Cassou --- drivers

[PATCH 3/5] drivers/video/mbx/mbxfb.c: use devm_ functions

2012-07-31 Thread Damien Cassou
From: Damien Cassou 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. Signed-off-by: Damien Cassou --- drivers

Re: [PATCH 5/5] drivers/video/exynos/exynos_dp_core.c: use devm_ functions

2012-08-01 Thread Damien Cassou
function Thank you for the feedback -- Damien Cassou http://damiencassou.seasidehosting.st "Lambdas are relegated to relative obscurity until Java makes them popular by not having them." James Iry -- To unsubscribe from this list: send the line "unsubscribe linux-kernel"

[PATCH 1/5] drivers/video/epson1355fb.c: use devm_ functions

2012-08-03 Thread Damien Cassou
From: Damien Cassou 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. Signed-off-by: Damien Cassou --- drivers

[PATCH 4/5] drivers/video/msm/mddi_client_dummy.c: use devm_ functions

2012-08-03 Thread Damien Cassou
From: Damien Cassou The various devm_ functions allocate memory that is released when a driver detaches. This patch replaces the use of kzalloc by devm_kzalloc. Signed-off-by: Damien Cassou --- drivers/video/msm/mddi_client_dummy.c | 12 ++-- 1 file changed, 2 insertions(+), 10

[PATCH 5/5] drivers/video/msm/mddi_client_nt35399.c: use devm_ functions

2012-08-03 Thread Damien Cassou
From: Damien Cassou The various devm_ functions allocate memory that is released when a driver detaches. This patch replaces the use of kzalloc by devm_kzalloc. Additionally, this patch fixes a memory leak: some memory was allocated for 'panel' but not released when the subseque

[PATCH 3/5] drivers/video/jz4740_fb.c: use devm_ functions

2012-08-03 Thread Damien Cassou
From: Damien Cassou 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. Signed-off-by: Damien Cassou --- drivers

[PATCH 0/5] use devm_ functions

2012-08-03 Thread Damien Cassou
These patches introduce devm_ functions in some video drivers. They have been generated using Coccinelle (http://coccinelle.lip6.fr/) and the following semantic patch: virtual after_start virtual returned virtual returnedDup virtual arg virtual argDup virtual all_args virtual get virtual nonull

[PATCH 2/5] drivers/video/bf54x-lq043fb.c: use devm_ functions

2012-08-03 Thread Damien Cassou
From: Damien Cassou The various devm_ functions allocate memory that is released when a driver detaches. This patch replaces the use of kzalloc by devm_kzalloc. Signed-off-by: Damien Cassou --- drivers/video/bf54x-lq043fb.c |8 +++- 1 file changed, 3 insertions(+), 5 deletions