mtd: nand: mxc_nand: Check the return value from clk_prepare_enable()
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 2 Dec 2013 02:50:02 +0000 (00:50 -0200)
committerBrian Norris <computersforpeace@gmail.com>
Fri, 3 Jan 2014 19:22:21 +0000 (11:22 -0800)
commitdcedf628f55ccdb34c8783a03bed9382bb5e1a82
tree56f6253ad2a8f649fcf5075378393f85326f4a1b
parent0566477762f9e174e97af347ee9c865f908a5647
mtd: nand: mxc_nand: Check the return value from clk_prepare_enable()

clk_prepare_enable() may fail, so let's check its return value and propagate it
in the case of error.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/mxc_nand.c