clk: qcom: Fix clk_get_parent function return value
authorGeorgi Djakov <georgi.djakov@linaro.org>
Fri, 20 Mar 2015 16:30:24 +0000 (18:30 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Mon, 23 Mar 2015 22:50:53 +0000 (15:50 -0700)
commit7f218978f10693f65e35b0bbcdcd539fbe78221a
tree7f83ff1dfa6340053dc005784ff9930d4e101807
parent0b21503dbbfa669dbd847b33578d4041513cddb2
clk: qcom: Fix clk_get_parent function return value

According to the common clock framework API, the clk_get_parent() function
should return u8. Currently we are returning negative values on error. Fix
this and use the default parent in case of an error.

Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/qcom/clk-rcg.c
drivers/clk/qcom/clk-rcg2.c