Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dcedf628 authored by Fabio Estevam's avatar Fabio Estevam Committed by Brian Norris
Browse files

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: default avatarFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 05664777
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1511,7 +1511,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;

	/*