]> git.baikalelectronics.ru Git - 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)
commit75b54631525e70c2b672ee6dd154362b35c7ed55
tree66575b6bd2294fdeb4f007486bfdead5991b74ee
parent72e67d5a9e34b2e95da6c54c48f41b5666dc8abe
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