diff options
author | Tomasz Figa <t.figa@samsung.com> | 2013-08-26 21:09:02 +0400 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2013-09-07 00:33:25 +0400 |
commit | 336c18bd33d3b8f6061b4618ddf0f0c73d8ed541 (patch) | |
tree | bc20bfa209f06cd8df6f9e131816d16cbb8c71a6 /drivers/clk | |
parent | a11a2f8f254f0716b750f806547acb8bb6ce5e3f (diff) | |
download | linux-336c18bd33d3b8f6061b4618ddf0f0c73d8ed541.tar.xz |
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: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk')
-rw-r--r-- | drivers/clk/samsung/clk-exynos4.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/clk/samsung/clk-exynos4.c b/drivers/clk/samsung/clk-exynos4.c index be5f6e4b9624..cafb6959cf69 100644 --- a/drivers/clk/samsung/clk-exynos4.c +++ b/drivers/clk/samsung/clk-exynos4.c @@ -1002,11 +1002,9 @@ static void __init exynos4_clk_init(struct device_node *np, { struct clk *apll, *mpll, *epll, *vpll; - if (np) { - reg_base = of_iomap(np, 0); - if (!reg_base) - panic("%s: failed to map registers\n", __func__); - } + reg_base = of_iomap(np, 0); + if (!reg_base) + panic("%s: failed to map registers\n", __func__); if (exynos4_soc == EXYNOS4210) samsung_clk_init(np, reg_base, nr_clks, @@ -1017,8 +1015,7 @@ static void __init exynos4_clk_init(struct device_node *np, exynos4_clk_regs, ARRAY_SIZE(exynos4_clk_regs), 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), ext_clk_match); |