]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
clk: samsung: Use clk_hw API for calling clk framework from clk notifiers
authorMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 2 Oct 2018 11:52:10 +0000 (13:52 +0200)
committerSylwester Nawrocki <snawrocki@kernel.org>
Fri, 5 Oct 2018 11:36:39 +0000 (13:36 +0200)
commit1da220e3a5d22fccda0bc8542997abc1d1741268
tree8e386d38d8d6c8b4d9379f25773630be10f4934e
parentb33228029d842269e17bba591609e83ed422005d
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>
drivers/clk/samsung/clk-cpu.c
drivers/clk/samsung/clk-cpu.h