Skip to content

Commit

Permalink
tty: serial: uartlite: use clk_disable_unprepare to match clk_prepare…
Browse files Browse the repository at this point in the history
…_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.

Signed-off-by: Chuhong Yuan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
WillLester authored and gregkh committed Nov 4, 2019
1 parent eb9c1a4 commit 6a7ce07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tty/serial/uartlite.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6a7ce07

Please sign in to comment.