]> git.hungrycats.org Git - linux/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>
Wed, 13 Sep 2023 07:48:36 +0000 (09:48 +0200)
commit9a61f2c08f30593e7de66f09acb5de4cc7a5d2ba
tree0e63bc6b545ba7386c85cb475c28970419792cc6
parentc4b5d365947356ef369c5d62d75c93e1b06ce0b9
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