clk: tegra: pll: Fix potential sleeping-while-atomic
authorAndrew Bresticker <abrestic@chromium.org>
Thu, 14 Jan 2016 19:24:34 +0000 (14:24 -0500)
committerThierry Reding <treding@nvidia.com>
Tue, 2 Feb 2016 14:49:23 +0000 (15:49 +0100)
commit3eb61566a6efc5a56ebe1e6b86519bc5e0b39003
tree5eec5fb563219b1503d9c04ff06a88eff47ba6c1
parent736971bed20de137db9b418cc641c7d11336fffb
clk: tegra: pll: Fix potential sleeping-while-atomic

Since the ->enable() callback is called with a spinlock held, we cannot
call potentially blocking functions such as clk_get_rate() or
clk_get_parent(), so use the unlocked versions instead.

Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
[rklein: Adapted from ChromeOS patch, removing pllu_enable cleanup as
it isn't present upstream]
Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/clk/tegra/clk-pll.c