mtd: nand: lpc32xx_mlc: Fix an error handling path in lpc32xx_nand_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 3 Sep 2017 11:58:31 +0000 (13:58 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 18 Sep 2017 10:07:30 +0000 (12:07 +0200)
commit17b694a5476de09e119c517dcc3b71eff6835bdf
treec2395fc0c866d77526ffb51f9d326ab002226f62
parentbfa4133795e5a0badd402dd3f58b13b3cec64a4b
mtd: nand: lpc32xx_mlc: Fix an error handling path in lpc32xx_nand_probe()

If 'clk_prepare_enable()' fails, we must 'put' the corresponding clock.

Fixes: 4d26f012ab59 ("mtd: nand: lpc32xx_mlc: Handle return value of clk_prepare_enable.")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/lpc32xx_mlc.c