]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/nfc/nfcwilink.c: use devm_kzalloc
authorJulia Lawall <Julia.Lawall@lip6.fr>
Thu, 6 Dec 2012 22:10:40 +0000 (23:10 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 11 Jan 2013 19:49:57 +0000 (14:49 -0500)
commitaa237d9cee2783024376988d22be41523cf80e4d
treeae02dc7909e80c37aff87222fd9e99270a3e3839
parent7c26f86c104de9da707692b77baa4d377f35230e
drivers/nfc/nfcwilink.c: use devm_kzalloc

devm_kzalloc allocates memory that is released when a driver detaches.
This patch uses devm_kzalloc 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>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/nfc/nfcwilink.c