Jerome Brunet 2b286b09a0 clk: scpi: error when clock fails to register
Current implementation of scpi_clk_add just print a warning when clock
fails to register but then keep going as if nothing happened. The
provider is then registered with bogus data.

This may latter lead to an Oops in __clk_create_clk when
hlist_add_head(&clk->clks_node, &hw->core->clks) is called.

This patch fixes the issue and errors if a clock fails to register.

Fixes: cd52c2a4b5c4 ("clk: add support for clocks provided by SCP(System Control Processor)")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2017-06-29 18:47:35 -07:00
..
2017-06-19 17:14:11 -07:00
2016-12-15 15:39:02 -08:00
2016-11-16 11:19:20 -08:00
2017-06-15 10:48:08 +03:00
2017-06-19 19:02:42 -07:00
2017-06-02 15:37:45 -07:00
2016-11-09 12:05:50 -08:00
2016-10-23 10:18:45 -07:00
2017-06-21 10:45:54 -07:00
2017-06-21 10:45:54 -07:00