mtd: bcm47xxnflash: Use devm_kzalloc
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 11 Oct 2013 04:41:25 +0000 (10:11 +0530)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 7 Nov 2013 07:32:56 +0000 (23:32 -0800)
commit7e3019e364f1b6b9ce123e747addcdc96e8d74ae
treebc06d080699918542eace8d338faca527f920329
parent994bbd0e91c0dfa4dcda9097b0716607aeec5470
mtd: bcm47xxnflash: Use devm_kzalloc

devm_kzalloc is device managed and simplifies the code.

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