mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-25 21:24:08 +08:00
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
This commit is contained in:
parent
d55ce49137
commit
1fefc8ecb8
@ -2126,6 +2126,8 @@ static int stfsm_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct stfsm *fsm = platform_get_drvdata(pdev);
|
||||
|
||||
clk_disable_unprepare(fsm->clk);
|
||||
|
||||
return mtd_device_unregister(&fsm->mtd);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user