summaryrefslogtreecommitdiffstats
path: root/drivers/remoteproc/qcom_adsp_pil.c
diff options
context:
space:
mode:
authorHimanshu Jha2017-08-29 15:43:18 +0200
committerBjorn Andersson2017-08-30 00:34:19 +0200
commitc76929b3c695305c1055d7e7c935d35b5fd275be (patch)
treed01f3cf37c417f2998dec4aef3f019134c9d8c71 /drivers/remoteproc/qcom_adsp_pil.c
parentremoteproc: st: explicitly request exclusive reset control (diff)
downloadkernel-qcow2-linux-c76929b3c695305c1055d7e7c935d35b5fd275be.tar.gz
kernel-qcow2-linux-c76929b3c695305c1055d7e7c935d35b5fd275be.tar.xz
kernel-qcow2-linux-c76929b3c695305c1055d7e7c935d35b5fd275be.zip
remoteproc: qcom: Use PTR_ERR_OR_ZERO
Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Signed-off-by: Himanshu Jha <himanshujha199640@gmail.com> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'drivers/remoteproc/qcom_adsp_pil.c')
-rw-r--r--drivers/remoteproc/qcom_adsp_pil.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/remoteproc/qcom_adsp_pil.c b/drivers/remoteproc/qcom_adsp_pil.c
index a41d399766fd..d01a8daf948a 100644
--- a/drivers/remoteproc/qcom_adsp_pil.c
+++ b/drivers/remoteproc/qcom_adsp_pil.c
@@ -268,10 +268,7 @@ static int adsp_init_regulator(struct qcom_adsp *adsp)
regulator_set_load(adsp->cx_supply, 100000);
adsp->px_supply = devm_regulator_get(adsp->dev, "px");
- if (IS_ERR(adsp->px_supply))
- return PTR_ERR(adsp->px_supply);
-
- return 0;
+ return PTR_ERR_OR_ZERO(adsp->px_supply);
}
static int adsp_request_irq(struct qcom_adsp *adsp,