]> 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)
commiteba9efcc08af63d84e9e738d5244d0ae1f476c57
treec2395fc0c866d77526ffb51f9d326ab002226f62
parentf0dd55751f58d789720b81471c44b43171ef97d4
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: 46af2acead79 ("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