mtd: nand: mxc_nand: Check the return value from clk_prepare_enable()
Subsystems (3)
Fabio Estevam
reviewerPATCH 1/1 mtd: nand: mxc_nand: Check the return value from clk_prepare_enable()
From: Fabio Estevam <[email protected]>
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 <[email protected]>
--- drivers/mtd/nand/mxc_nand.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/mtd/nand/mxc_nand.c +3 -1
@@ -1512,7 +1512,9 @@ static int mxcnd_probe(struct platform_device *pdev)if (err)return err; -clk_prepare_enable (host->clk); + err =clk_prepare_enable (host->clk); +if (err) +return err; host->clk_act =1 ;/*
Signature · 1 line
1.8.1.2
Brian Norris
AppliedQuoted 6 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
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 <[email protected]>
Pushed to l2-mtd.git. Thanks!
Brian