OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb33c65
)
i2c: hix5hd2: add missed clk_disable_unprepare in remove
author
Chuhong Yuan
<hslester96@gmail.com>
Mon, 4 Nov 2019 15:00:48 +0000
(23:00 +0800)
committer
Wolfram Sang
<wsa@the-dreams.de>
Sun, 22 Mar 2020 16:20:11 +0000
(17:20 +0100)
The driver forgets to disable and unprepare clk when remove.
Add a call to clk_disable_unprepare to fix it.
Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Cc: stable@kernel.org
drivers/i2c/busses/i2c-hix5hd2.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-hix5hd2.c
b/drivers/i2c/busses/i2c-hix5hd2.c
index
8497c7a
..
224f830
100644
(file)
--- a/
drivers/i2c/busses/i2c-hix5hd2.c
+++ b/
drivers/i2c/busses/i2c-hix5hd2.c
@@
-477,6
+477,7
@@
static int hix5hd2_i2c_remove(struct platform_device *pdev)
i2c_del_adapter(&priv->adap);
pm_runtime_disable(priv->dev);
pm_runtime_set_suspended(priv->dev);
+ clk_disable_unprepare(priv->clk);
return 0;
}