mtd: socrates_nand: Use devm_kzalloc
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 8 Oct 2013 10:01:46 +0000 (15:31 +0530)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 7 Nov 2013 07:32:50 +0000 (23:32 -0800)
commitcf3a9b56a128ec8a1631c29aacb8cf19b55ea73d
treefc52e8615f80d6f27f656bba5ace3399c02e75c8
parentecb598d0b2ca4897a3962aed7680ee3d28dda6e8
mtd: socrates_nand: Use devm_kzalloc

devm_kzalloc is device managed and makes code simpler.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/socrates_nand.c