]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd5bac412dd594cd97f744d1628f086b927706d4f
treec2395fc0c866d77526ffb51f9d326ab002226f62
parent507e21d38da88a8fec89cf5a046b8ec0de316e66
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: a140553ed490 ("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