clk: samsung: exynos5420: Avoid __clk_lookup() calls when enabling clocks
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Tue, 11 Aug 2020 15:12:51 +0000 (17:12 +0200)
committerSylwester Nawrocki <s.nawrocki@samsung.com>
Thu, 17 Sep 2020 10:05:14 +0000 (12:05 +0200)
commit8b066520ff7e5d8e843f4e405da0069636980666
tree8e9ac85e15871abdb8f6cda2307d9a299f662ac3
parent3f1cc53b5f6f26e80e3176936714ec5dcab74244
clk: samsung: exynos5420: Avoid __clk_lookup() calls when enabling clocks

This patch adds a clk ID to the mout_sw_aclk_g3d clk definition so related
clk pointer gets cached in the driver's private data and can be used
later instead of a __clk_lookup() call.

With that we have all clocks used in the clk_prepare_enable() calls in the
clk provider init callback cached in clk_data.hws[] and we can reference
the clk pointers directly rather than using __clk_lookup() with global names.

Link: https://lore.kernel.org/r/20200811151251.31613-2-s.nawrocki@samsung.com
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
drivers/clk/samsung/clk-exynos5420.c