]> git.baikalelectronics.ru Git - kernel.git/commit
clk: zx296718: do not panic on failure
authorShawn Guo <shawn.guo@linaro.org>
Fri, 16 Dec 2016 07:26:45 +0000 (15:26 +0800)
committerStephen Boyd <sboyd@codeaurora.org>
Tue, 10 Jan 2017 00:06:42 +0000 (16:06 -0800)
commite04ec6994152bf06b516989b987fb8ee2f3367e2
treeae9c10e4e5b23fc58d0816917c1aaca793606d6e
parenta22203113293996e3146992f956ac3b53f6814ab
clk: zx296718: do not panic on failure

Instead of using panic, we should give an error message and return error
code when of_clk_add_hw_provider() call fails.

Since we have error prompt for failures, the "init over" pr_info output
isn't really necessary but becomes a debug noise.  So let's clean it up
along the way.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/zte/clk-zx296718.c