summaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2019-02-22 01:32:26 -0500
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-03-19 13:43:16 -0400
commit1fc79c4bb19ba5068fc42d3a66655c3b175f9934 (patch)
tree13958367e7ec8eb888d5b02edd54d28236baf2d3 /drivers/staging
parentdee747f88167124884a918855c1f438e2f7f39e2 (diff)
downloadlinux-stable-1fc79c4bb19ba5068fc42d3a66655c3b175f9934.tar.gz
linux-stable-1fc79c4bb19ba5068fc42d3a66655c3b175f9934.tar.bz2
linux-stable-1fc79c4bb19ba5068fc42d3a66655c3b175f9934.zip
media: staging/imx7: Fix an error code in mipi_csis_clk_get()
We accidentally return IS_ERR(), which is 1, instead of the PTR_ERR() which is the negative error code. Fixes: 7807063b862b ("media: staging/imx7: add MIPI CSI-2 receiver subdev for i.MX7") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/media/imx/imx7-mipi-csis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/media/imx/imx7-mipi-csis.c b/drivers/staging/media/imx/imx7-mipi-csis.c
index e1f2ef1fa76d..a1f36be2e844 100644
--- a/drivers/staging/media/imx/imx7-mipi-csis.c
+++ b/drivers/staging/media/imx/imx7-mipi-csis.c
@@ -491,7 +491,7 @@ static int mipi_csis_clk_get(struct csi_state *state)
state->wrap_clk = devm_clk_get(dev, "wrap");
if (IS_ERR(state->wrap_clk))
- return IS_ERR(state->wrap_clk);
+ return PTR_ERR(state->wrap_clk);
/* Set clock rate */
ret = clk_set_rate(state->wrap_clk, state->clk_frequency);