summaryrefslogtreecommitdiffstats
path: root/drivers/clk/samsung/clk-exynos5250.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski2016-05-09 19:32:31 +0200
committerSylwester Nawrocki2016-06-02 11:17:57 +0200
commitdfb86ade53a94963eafe0d78360616faa90cde3b (patch)
tree37885b0a7dfc6f46d6ae85fcd2df174b1c1835d4 /drivers/clk/samsung/clk-exynos5250.c
parentclk: samsung: exynos7: Don't gate CMU_{CCORE, FSYS0} blocks clock (diff)
downloadkernel-qcow2-linux-dfb86ade53a94963eafe0d78360616faa90cde3b.tar.gz
kernel-qcow2-linux-dfb86ade53a94963eafe0d78360616faa90cde3b.tar.xz
kernel-qcow2-linux-dfb86ade53a94963eafe0d78360616faa90cde3b.zip
clk: samsung: Remove useless check for return value of samsung_clk_init
The samsung_clk_init() cannot return NULL. Either it returns allocated memory or it panics. Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Diffstat (limited to 'drivers/clk/samsung/clk-exynos5250.c')
-rw-r--r--drivers/clk/samsung/clk-exynos5250.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/clk/samsung/clk-exynos5250.c b/drivers/clk/samsung/clk-exynos5250.c
index 837197db4ffb..d8621cf31786 100644
--- a/drivers/clk/samsung/clk-exynos5250.c
+++ b/drivers/clk/samsung/clk-exynos5250.c
@@ -805,8 +805,7 @@ static void __init exynos5250_clk_init(struct device_node *np)
}
ctx = samsung_clk_init(np, reg_base, CLK_NR_CLKS);
- if (!ctx)
- panic("%s: unable to allocate context.\n", __func__);
+
samsung_clk_of_register_fixed_ext(ctx, exynos5250_fixed_rate_ext_clks,
ARRAY_SIZE(exynos5250_fixed_rate_ext_clks),
ext_clk_match);