]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mtd: rawnand: fsmc: handle clk prepare error in fsmc_nand_resume()
authorYi Yang <yiyang13@huawei.com>
Thu, 17 Aug 2023 11:58:39 +0000 (19:58 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Sep 2023 10:22:49 +0000 (12:22 +0200)
commit58d17e766093e3ee99a4164253ddabba8569ac68
tree54851197d5facf890d116c3f225191b576d5e2b6
parent679a71b3117938bd94ee02f7fdb5c957ae504ac4
mtd: rawnand: fsmc: handle clk prepare error in fsmc_nand_resume()

[ Upstream commit a5a88125d00612586e941ae13e7fcf36ba8f18a7 ]

In fsmc_nand_resume(), the return value of clk_prepare_enable() should be
checked since it might fail.

Fixes: e25da1c07dfb ("mtd: fsmc_nand: Add clk_{un}prepare() support")
Signed-off-by: Yi Yang <yiyang13@huawei.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20230817115839.10192-1-yiyang13@huawei.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mtd/nand/raw/fsmc_nand.c