]> git.karo-electronics.de Git - linux-beck.git/commit
clk: samsung: Register clk provider only after registering its all clocks
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Wed, 18 Jun 2014 15:46:52 +0000 (17:46 +0200)
committerTomasz Figa <t.figa@samsung.com>
Mon, 30 Jun 2014 13:07:55 +0000 (15:07 +0200)
commitd5e136a21b2028fb1f45143ea7112d5869bfc6c7
tree5515a38250e241056cf3538bbbf6deec37812765
parentbdfcdf18c380a3c376b42709a89eb2cc52e95ae0
clk: samsung: Register clk provider only after registering its all clocks

Ensure the clock provider is not registered until after all its related
clocks were created and are ready to use. Currently there are races
possible and any (of_)clk_get() call right after a clock provider's
clk_init_cb callback call may fail.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
13 files changed:
drivers/clk/samsung/clk-exynos3250.c
drivers/clk/samsung/clk-exynos4.c
drivers/clk/samsung/clk-exynos5250.c
drivers/clk/samsung/clk-exynos5260.c
drivers/clk/samsung/clk-exynos5410.c
drivers/clk/samsung/clk-exynos5420.c
drivers/clk/samsung/clk-exynos5440.c
drivers/clk/samsung/clk-s3c2410.c
drivers/clk/samsung/clk-s3c2412.c
drivers/clk/samsung/clk-s3c2443.c
drivers/clk/samsung/clk-s3c64xx.c
drivers/clk/samsung/clk.c
drivers/clk/samsung/clk.h