]> git.baikalelectronics.ru Git - kernel.git/commit
[media] drivers/media/radio/radio-wl1273.c: use devm_ functions
authorJulia Lawall <Julia.Lawall@lip6.fr>
Tue, 31 Jul 2012 08:21:35 +0000 (05:21 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 13 Aug 2012 19:29:31 +0000 (16:29 -0300)
commit925dc0ac6cdb19dd8a631755d02a26f075f25b22
treea64d081eabd076987b404b61d30baa1a98899355
parent72e6bf5cee5cdbf942bcecf6ca063ab3c7f8b29a
[media] drivers/media/radio/radio-wl1273.c: 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.

In two cases, the original memory allocation function was kmalloc, which
has been changed to a zeroing allocation to benefit from the devm function.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/radio/radio-wl1273.c