mtd: rawnand: marvell: add missing clk_disable_unprepare() on error in marvell_nfc_re...
authorYang Yingliang <yangyingliang@huawei.com>
Tue, 1 Jun 2021 12:58:14 +0000 (20:58 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 14:56:47 +0000 (16:56 +0200)
commitc183b55ed7e5f59b2c509b7bc5b853e7c3b9e9e4
tree98772aa26bdd6245dff954f6479480c2466def86
parentf929d21af75d96b2417b266012cc94f7201cb5d3
mtd: rawnand: marvell: add missing clk_disable_unprepare() on error in marvell_nfc_resume()

[ Upstream commit ae94c49527aa9bd3b563349adc4b5617747ca6bd ]

Add clk_disable_unprepare() on error path in marvell_nfc_resume().

Fixes: bd9c3f9b3c00 ("mtd: rawnand: marvell: add suspend and resume hooks")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210601125814.3260364-1-yangyingliang@huawei.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mtd/nand/raw/marvell_nand.c