mtd: txx9ndfmc: Use nand_release to free resources
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Mon, 2 Nov 2009 14:40:48 +0000 (23:40 +0900)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 30 Nov 2009 09:47:42 +0000 (09:47 +0000)
commit6eb4feffb9d619a44fe434e777ef095a29cf4759
treeb23ead3aecc88dffc0c41c466d518ccfddd23db4
parentd6587feaf0ed7511b3d0b52bcaae8ecd0949d3af
mtd: txx9ndfmc: Use nand_release to free resources

This patch fixes memory leak on chip->bbt and chip->buffers.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/txx9ndfmc.c