summaryrefslogtreecommitdiff
path: root/drivers/i2c
diff options
context:
space:
mode:
authorChuhong Yuan <hslester96@gmail.com>2019-11-04 18:00:48 +0300
committerWolfram Sang <wsa@the-dreams.de>2020-03-22 19:20:11 +0300
commite1b9f99ff8c40bba6e59de9ad4a659447b1e4112 (patch)
tree6a632f603d85cd349f9f10951faadc3dcce2f137 /drivers/i2c
parentfb33c6510d5595144d585aa194d377cf74d31911 (diff)
downloadlinux-e1b9f99ff8c40bba6e59de9ad4a659447b1e4112.tar.xz
i2c: hix5hd2: add missed clk_disable_unprepare in remove
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
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/i2c-hix5hd2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-hix5hd2.c b/drivers/i2c/busses/i2c-hix5hd2.c
index 8497c7a95dd4..224f830f77f9 100644
--- 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;
}