]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
NFC: nfcwilink: Use devm_kzalloc
authorJulia Lawall <Julia.Lawall@lip6.fr>
Thu, 6 Dec 2012 22:10:40 +0000 (23:10 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 9 Jan 2013 23:51:47 +0000 (00:51 +0100)
commit5f4d6214ef5e9b1ff6a72ddfa387c1d72adfac98
tree66575b6bd2294fdeb4f007486bfdead5991b74ee
parent9e2d493e74aca105aa86de56dbf80a0a654c4c53
NFC: nfcwilink: 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: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/nfcwilink.c