mtd: nand: pxa3xx: Use devm_kzalloc
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Wed, 17 Apr 2013 16:38:09 +0000 (13:38 -0300)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 5 Aug 2013 19:47:23 +0000 (20:47 +0100)
commit4c073cd26e0835ae9c807a6188272e09d3087d85
treeb6f80c90528ccfd7e48b6d8e81b8b3d88328d033
parenta1c06609b37c304c58f6d1d3b8e987edaf3391f3
mtd: nand: pxa3xx: Use devm_kzalloc

Replace regular kzalloc with managed devm_kzalloc
which simplifies the error path.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/pxa3xx_nand.c