Commit 1fefc8ec authored by Yang Yingliang's avatar Yang Yingliang Committed by Miquel Raynal

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: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220516092911.953066-1-yangyingliang@huawei.com
parent d55ce491
...@@ -2126,6 +2126,8 @@ static int stfsm_remove(struct platform_device *pdev) ...@@ -2126,6 +2126,8 @@ static int stfsm_remove(struct platform_device *pdev)
{ {
struct stfsm *fsm = platform_get_drvdata(pdev); struct stfsm *fsm = platform_get_drvdata(pdev);
clk_disable_unprepare(fsm->clk);
return mtd_device_unregister(&fsm->mtd); return mtd_device_unregister(&fsm->mtd);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment