mtd: mxc_nand: Use managed resources
authorSascha Hauer <s.hauer@pengutronix.de>
Wed, 6 Jun 2012 10:33:13 +0000 (12:33 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 6 Jul 2012 17:17:05 +0000 (18:17 +0100)
commite4a09cbf2dc7ba6c7fd7e07a3ab3d3f499a575e2
treede637233fe175db5aff43c96b4c1b4c13f88c1cd
parent874d72c4fe07713c4889c944d3c7ebbce352c762
mtd: mxc_nand: Use managed resources

To make the error path simpler and to make subsequent patches
easier.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/mxc_nand.c