projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d55ce49
)
mtd: st_spi_fsm: add missing clk_disable_unprepare() in stfsm_remove()
author
Yang Yingliang
<yangyingliang@huawei.com>
Mon, 16 May 2022 09:29:11 +0000
(17:29 +0800)
committer
Miquel Raynal
<miquel.raynal@bootlin.com>
Tue, 17 May 2022 16:36:02 +0000
(18:36 +0200)
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
drivers/mtd/devices/st_spi_fsm.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/devices/st_spi_fsm.c
b/drivers/mtd/devices/st_spi_fsm.c
index
983999c
..
d3377b1
100644
(file)
--- a/
drivers/mtd/devices/st_spi_fsm.c
+++ b/
drivers/mtd/devices/st_spi_fsm.c
@@
-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);
}