Skip to content

Commit

Permalink
clk: tegra: clk-dfll: Remove call to pm_runtime_irq_safe()
Browse files Browse the repository at this point in the history
pm_runtime_irq_safe() is not needed as interrupts are allowed during
suspend and resume. This was added mistakenly during DFLL suspend and
resume support patch.

While at it, also update the description of the dev argument that is
passed to the tegra_dfll_suspend() function.

Signed-off-by: Sowjanya Komatineni <skomatineni@nvidia.com>
Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
  • Loading branch information
Sowjanya Komatineni authored and Thierry Reding committed Jan 10, 2020
1 parent bf83b96 commit d8edf52
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/clk/tegra/clk-dfll.c
Original file line number Diff line number Diff line change
Expand Up @@ -1487,7 +1487,6 @@ static int dfll_init(struct tegra_dfll *td)
td->last_unrounded_rate = 0;

pm_runtime_enable(td->dev);
pm_runtime_irq_safe(td->dev);
pm_runtime_get_sync(td->dev);

dfll_set_mode(td, DFLL_DISABLED);
Expand Down Expand Up @@ -1516,7 +1515,7 @@ static int dfll_init(struct tegra_dfll *td)

/**
* tegra_dfll_suspend - check DFLL is disabled
* @dev: DFLL device *
* @dev: DFLL instance
*
* DFLL clock should be disabled by the CPUFreq driver. So, make
* sure it is disabled and disable all clocks needed by the DFLL.
Expand Down

0 comments on commit d8edf52

Please sign in to comment.