mirror of
https://github.com/hardkernel/linux.git
synced 2026-05-31 16:26:41 +09:00
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: 7807063b86 ("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>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
dee747f881
commit
1fc79c4bb1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user