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)
commit29b7d9ad9112a95757c8030421dc3bd1b28ad8b5
treeae02dc7909e80c37aff87222fd9e99270a3e3839
parente93d083f42a126b5ad8137b5f0e8d6f900b332b8
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