clk: qcom: rcg: Return failure for RCG update

In case of update config failure, return -EBUSY, so that consumers could
handle the failure gracefully.

Signed-off-by: Taniya Das <tdas@codeaurora.org>
Link: https://lkml.kernel.org/r/1557339895-21952-2-git-send-email-tdas@codeaurora.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
This commit is contained in:
Taniya Das 2019-05-08 23:54:53 +05:30 committed by Stephen Boyd
parent 3bcff3e45b
commit 21ea4b62e1
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ static int update_config(struct clk_rcg2 *rcg)
} }
WARN(1, "%s: rcg didn't update its configuration.", name); WARN(1, "%s: rcg didn't update its configuration.", name);
return 0; return -EBUSY;
} }
static int clk_rcg2_set_parent(struct clk_hw *hw, u8 index) static int clk_rcg2_set_parent(struct clk_hw *hw, u8 index)