Commit 336c18bd authored by Tomasz Figa's avatar Tomasz Figa Committed by Mike Turquette

clk: samsung: exynos4: Remove checks for DT node

Exynos 4 supports only DT based bootup, so non-DT cases does not need to
be handled anymore.
Signed-off-by: default avatarTomasz Figa <t.figa@samsung.com>
Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
Reviewed-by: default avatarSylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: default avatarMike Turquette <mturquette@linaro.org>
parent a11a2f8f
...@@ -1002,11 +1002,9 @@ static void __init exynos4_clk_init(struct device_node *np, ...@@ -1002,11 +1002,9 @@ static void __init exynos4_clk_init(struct device_node *np,
{ {
struct clk *apll, *mpll, *epll, *vpll; struct clk *apll, *mpll, *epll, *vpll;
if (np) { reg_base = of_iomap(np, 0);
reg_base = of_iomap(np, 0); if (!reg_base)
if (!reg_base) panic("%s: failed to map registers\n", __func__);
panic("%s: failed to map registers\n", __func__);
}
if (exynos4_soc == EXYNOS4210) if (exynos4_soc == EXYNOS4210)
samsung_clk_init(np, reg_base, nr_clks, samsung_clk_init(np, reg_base, nr_clks,
...@@ -1017,8 +1015,7 @@ static void __init exynos4_clk_init(struct device_node *np, ...@@ -1017,8 +1015,7 @@ static void __init exynos4_clk_init(struct device_node *np,
exynos4_clk_regs, ARRAY_SIZE(exynos4_clk_regs), exynos4_clk_regs, ARRAY_SIZE(exynos4_clk_regs),
exynos4x12_clk_save, ARRAY_SIZE(exynos4x12_clk_save)); exynos4x12_clk_save, ARRAY_SIZE(exynos4x12_clk_save));
if (np) samsung_clk_of_register_fixed_ext(exynos4_fixed_rate_ext_clks,
samsung_clk_of_register_fixed_ext(exynos4_fixed_rate_ext_clks,
ARRAY_SIZE(exynos4_fixed_rate_ext_clks), ARRAY_SIZE(exynos4_fixed_rate_ext_clks),
ext_clk_match); ext_clk_match);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment