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)
commit26f6b0b771b6629188e121f6f0380f3835b23272
treeae9c10e4e5b23fc58d0816917c1aaca793606d6e
parented784c532a3d0959db488f40a96c5127f63d42dc
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