mtd: nand: pxa3xx: Check for clk_prepare_enable() return value
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Wed, 17 Apr 2013 16:38:13 +0000 (13:38 -0300)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 5 Aug 2013 19:47:48 +0000 (20:47 +0100)
commit1f8eaff2aa75f8ec662e044deecdc91abc780d60
treec27f6fe842e2b2c6eb5e7f8344fdaef327c8a5e0
parentfb32061ffaa9da61f72f79120a39729aa1736de0
mtd: nand: pxa3xx: Check for clk_prepare_enable() return value

clk_prepare_enable() can fail due to unknown reason.
Add a check for this and return the error code if it fails.

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