All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] video: mx3_camera: Allocate camera object via kzalloc
@ 2012-02-20 18:11 Fabio Estevam
  2012-02-20 18:17 ` Guennadi Liakhovetski
  0 siblings, 1 reply; 11+ messages in thread
From: Fabio Estevam @ 2012-02-20 18:11 UTC (permalink / raw)
  To: linux-media; +Cc: g.liakhovetski, mchehab, kernel, Fabio Estevam, Fabio Estevam

Align mx3_camera driver with the other soc camera driver implementations
by allocating the camera object via kzalloc.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 drivers/media/video/mx3_camera.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/media/video/mx3_camera.c b/drivers/media/video/mx3_camera.c
index 7452277..cccd574 100644
--- a/drivers/media/video/mx3_camera.c
+++ b/drivers/media/video/mx3_camera.c
@@ -1159,7 +1159,7 @@ static int __devinit mx3_camera_probe(struct platform_device *pdev)
 		goto egetres;
 	}
 
-	mx3_cam = vzalloc(sizeof(*mx3_cam));
+	mx3_cam = kzalloc(sizeof(*mx3_cam), GFP_KERNEL);
 	if (!mx3_cam) {
 		dev_err(&pdev->dev, "Could not allocate mx3 camera object\n");
 		err = -ENOMEM;
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-03-20 13:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-20 18:11 [PATCH] video: mx3_camera: Allocate camera object via kzalloc Fabio Estevam
2012-02-20 18:17 ` Guennadi Liakhovetski
2012-02-20 18:23   ` Fabio Estevam
2012-03-20  2:01     ` Mauro Carvalho Chehab
2012-03-20  7:57       ` Guennadi Liakhovetski
2012-03-20 12:37         ` Fabio Estevam
2012-03-20 12:40           ` Guennadi Liakhovetski
2012-03-20 12:45             ` Fabio Estevam
2012-03-20 13:11               ` Guennadi Liakhovetski
2012-03-20 13:20               ` AverTV Volar HD PRO : a return case Sril
2012-03-20 12:53         ` [PATCH] video: mx3_camera: Allocate camera object via kzalloc Mauro Carvalho Chehab

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.