Skip to content

Commit e1b9f99

Browse files
WillLesterWolfram Sang
authored andcommitted
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 <[email protected]> Signed-off-by: Wolfram Sang <[email protected]> Cc: [email protected]
1 parent fb33c65 commit e1b9f99

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/i2c/busses/i2c-hix5hd2.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,7 @@ static int hix5hd2_i2c_remove(struct platform_device *pdev)
477477
i2c_del_adapter(&priv->adap);
478478
pm_runtime_disable(priv->dev);
479479
pm_runtime_set_suspended(priv->dev);
480+
clk_disable_unprepare(priv->clk);
480481

481482
return 0;
482483
}

0 commit comments

Comments
 (0)