clk: samsung: Use cached clk_hws instead of __clk_lookup() calls
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Wed, 26 Aug 2020 17:15:29 +0000 (19:15 +0200)
committerSylwester Nawrocki <s.nawrocki@samsung.com>
Thu, 17 Sep 2020 10:05:18 +0000 (12:05 +0200)
commitff8e0ff9b99643a32f7e33a96867e76d0fa10f76
tree70fdfadddc51c2bedc30bde7151e70f6d704e512
parent1f6e17d20245e86678c75ed99ce115f46cd3410f
clk: samsung: Use cached clk_hws instead of __clk_lookup() calls

For the CPU clock registration two parent clocks are required, these
are now being passed as struct clk_hw pointers, rather than by the
global scope names. That allows us to avoid  __clk_lookup() calls
and simplifies a bit the CPU clock registration function.
While at it drop unneeded extern keyword in the function declaration.

Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Link: https://lore.kernel.org/r/20200826171529.23618-3-s.nawrocki@samsung.com
Reported-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
drivers/clk/samsung/clk-cpu.c
drivers/clk/samsung/clk-cpu.h
drivers/clk/samsung/clk-exynos3250.c
drivers/clk/samsung/clk-exynos4.c
drivers/clk/samsung/clk-exynos5250.c
drivers/clk/samsung/clk-exynos5420.c
drivers/clk/samsung/clk-exynos5433.c