]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
i2c: hix5hd2: add missed clk_disable_unprepare in remove
authorChuhong Yuan <hslester96@gmail.com>
Mon, 4 Nov 2019 15:00:48 +0000 (23:00 +0800)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 7 Apr 2020 08:52:45 +0000 (10:52 +0200)
BugLink: https://bugs.launchpad.net/bugs/1870604
commit e1b9f99ff8c40bba6e59de9ad4a659447b1e4112 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/i2c/busses/i2c-hix5hd2.c

index bb68957d3da5e6846169ae1b26bfd37f9e6d1caa..aa5c55bd8b112ba1a852e5377153e736c33f6226 100644 (file)
@@ -498,6 +498,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;
 }