Skip to content

Commit 1fefc8e

Browse files
Yang Yingliangmiquelraynal
authored andcommitted
mtd: st_spi_fsm: add missing clk_disable_unprepare() in stfsm_remove()
Clock source is prepared and enabled by clk_prepare_enable() in probe function, but not disabled or unprepared in remove function. Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20220516092911.953066-1-yangyingliang@huawei.com
1 parent d55ce49 commit 1fefc8e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/mtd/devices/st_spi_fsm.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2126,6 +2126,8 @@ static int stfsm_remove(struct platform_device *pdev)
21262126
{
21272127
struct stfsm *fsm = platform_get_drvdata(pdev);
21282128

2129+
clk_disable_unprepare(fsm->clk);
2130+
21292131
return mtd_device_unregister(&fsm->mtd);
21302132
}
21312133

0 commit comments

Comments
 (0)