cw1200: Introduce the use of devm_kzalloc
authorHimangi Saraogi <himangi774@gmail.com>
Sat, 2 Aug 2014 14:52:46 +0000 (20:22 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 25 Aug 2014 20:00:43 +0000 (16:00 -0400)
commit26c0604628f85d435a664f52fd2ca30aab812266
treeebfb93a7fb09f805b97d23fdfb1d1e62ead57d63
parent6040aa70c30276e6cd2aacd1f428c3f05462a7f1
cw1200: Introduce the use of devm_kzalloc

This patch introduces the use of devm_kzalloc and does away with the
kfrees in the probe and remove functions.

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/cw1200/cw1200_spi.c