diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2018-10-02 13:52:10 +0200 |
---|---|---|
committer | Sylwester Nawrocki <snawrocki@kernel.org> | 2018-10-05 13:36:39 +0200 |
commit | 1da220e3a5d22fccda0bc8542997abc1d1741268 (patch) | |
tree | 8e386d38d8d6c8b4d9379f25773630be10f4934e /drivers/clk/samsung/clk-cpu.h | |
parent | clk: samsung: exynos5420: Enable PERIS clocks for suspend (diff) | |
download | linux-1da220e3a5d22fccda0bc8542997abc1d1741268.tar.xz linux-1da220e3a5d22fccda0bc8542997abc1d1741268.zip |
clk: samsung: Use clk_hw API for calling clk framework from clk notifiers
clk_notifier_register() documentation states, that the provided notifier
callbacks associated with the notifier must not re-enter into the clk
framework by calling any top-level clk APIs. Fix this by replacing
clk_get_rate() calls with clk_hw_get_rate(), which is safe in this
context.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Sylwester Nawrocki <snawrocki@kernel.org>
Diffstat (limited to 'drivers/clk/samsung/clk-cpu.h')
-rw-r--r-- | drivers/clk/samsung/clk-cpu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/samsung/clk-cpu.h b/drivers/clk/samsung/clk-cpu.h index d4b6b517fe1b..bd38c6aa3897 100644 --- a/drivers/clk/samsung/clk-cpu.h +++ b/drivers/clk/samsung/clk-cpu.h @@ -49,7 +49,7 @@ struct exynos_cpuclk_cfg_data { */ struct exynos_cpuclk { struct clk_hw hw; - struct clk *alt_parent; + struct clk_hw *alt_parent; void __iomem *ctrl_base; spinlock_t *lock; const struct exynos_cpuclk_cfg_data *cfg; |