1
0
Fork 0

i2c: hix5hd2: add missed clk_disable_unprepare in remove

commit e1b9f99ff8 upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
5.4-rM2-2.2.x-imx-squashed
Chuhong Yuan 2019-11-04 23:00:48 +08:00 committed by Greg Kroah-Hartman
parent 65047f7538
commit d8f58a0f53
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}