Skip to contentSkip to conversation

i2c: hix5hd2: add missed clk_disable_unprepare in remove

PATCH Applied Chuhong Yuan 2 participants 2 messages Nov 4, 2019 – Mar 22, 2020 I2C subsystem host drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/i2c/busses/i2c-hix5hd2.c | 1 +
 1 file changed, 1 insertion(+)
drivers/i2c/busses/i2c-hix5hd2.c +1 -0
index 8497c7a95dd4..224f830f77f9 100644
@@ -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;
 }
Signature · 1 line
2.23.0
Applied
#1 lore raw
Quoted 4 lines · Chuhong Yuan

The driver forgets to disable and unprepare clk when remove. Add a call to clk_disable_unprepare to fix it.

Applied to for-current, thanks!