diff options
author | Taniya Das <tdas@codeaurora.org> | 2019-05-08 23:54:53 +0530 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2019-09-17 10:29:39 -0700 |
commit | 21ea4b62e1f3dc258001a68da98c9663a9dbd6c7 (patch) | |
tree | 5fdcb37c1420cd5f88d73ee023f7aa2d900c2eec /drivers | |
parent | 3bcff3e45bc0d0d18ac1df7145d37323b82caf88 (diff) | |
download | linux-21ea4b62e1f3dc258001a68da98c9663a9dbd6c7.tar.bz2 |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/clk/qcom/clk-rcg2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/qcom/clk-rcg2.c b/drivers/clk/qcom/clk-rcg2.c index 8c02bffe50df..57dbac9a590e 100644 --- a/drivers/clk/qcom/clk-rcg2.c +++ b/drivers/clk/qcom/clk-rcg2.c @@ -119,7 +119,7 @@ static int update_config(struct clk_rcg2 *rcg) } 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) |