OSDN Git Service

[media] v4l: s5p-tv: use devm_ functions
authorJulia Lawall <Julia.Lawall@lip6.fr>
Mon, 13 Feb 2012 13:34:58 +0000 (10:34 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 28 Feb 2012 21:24:17 +0000 (18:24 -0300)
commite861dccc6d8d870d764ed950417cfb0e65889b90
tree4cdcdb43320f6dc4f9a2b3fcda66572f8dd6efe6
parent58df1716dc7a2a4628b5cd5586031f94230a2c2c
[media] v4l: s5p-tv: use devm_ functions

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: Julia Lawall <Julia.Lawall@lip6.fr>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/s5p-tv/hdmi_drv.c
drivers/media/video/s5p-tv/sdo_drv.c