aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/rpmsg/rpmsg_resmgr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/rpmsg/rpmsg_resmgr.c b/drivers/rpmsg/rpmsg_resmgr.c
index a13094d..c98a1b9 100644
--- a/drivers/rpmsg/rpmsg_resmgr.c
+++ b/drivers/rpmsg/rpmsg_resmgr.c
@@ -214,7 +214,6 @@ static int rprm_auxclk_request(struct rprm_elem *e, struct rprm_auxclk *obj)
if (ret) {
pr_err("%s: rate not supported by %s\n", __func__,
clk_src_name[obj->parent_src_clk]);
- ret = -EINVAL;
goto error_aux_src_parent;
}
@@ -236,7 +235,7 @@ static int rprm_auxclk_request(struct rprm_elem *e, struct rprm_auxclk *obj)
ret = clk_set_rate(acd->aux_clk, (obj->clk_rate * MHZ));
if (ret) {
pr_err("%s: rate not supported by %s\n", __func__, clk_name);
- goto error_aux_src_parent;
+ goto error_aux_enable;
}
ret = clk_enable(acd->aux_clk);