Skip to contentSkip to conversation

tty: serial: uartlite: use clk_disable_unprepare to match clk_prepare_enable

PATCH New Chuhong Yuan 1 participant 1 message Nov 1, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tty: serial: uartlite: use clk_disable_unprepare to match clk_prepare_enable

The driver uses clk_prepare_enable in ulite_probe but uses clk_unprepare in ulite_remove, which does not match.
Replace clk_unprepare with clk_disable_unprepare to fix it.

---
 drivers/tty/serial/uartlite.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/serial/uartlite.c +1 -1
index 06e79c11141d..3d245827be27 100644
@@ -862,7 +862,7 @@ static int ulite_remove(struct platform_device *pdev)
 	struct uartlite_data *pdata = port->private_data;
 	int rc;
 
-	clk_unprepare(pdata->clk);
+	clk_disable_unprepare(pdata->clk);
 	rc = ulite_release(&pdev->dev);
 	pm_runtime_disable(&pdev->dev);
 	pm_runtime_set_suspended(&pdev->dev);
Signature · 1 line
2.23.0