[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)
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>

No differences found