Commit d4b32646 authored by Vitaly Osipov's avatar Vitaly Osipov Committed by Mauro Carvalho Chehab

[media] staging: omap4iss: copy paste error in iss_get_clocks

It makes more sense to return PTR_ERR(iss->iss_ctrlclk) here. The
current code looks like an oversight in pasting the block just above
this one.
Signed-off-by: default avatarVitaly Osipov <vitaly.osipov@gmail.com>
Acked-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 63ddf68d
...@@ -1014,6 +1014,7 @@ static int iss_get_clocks(struct iss_device *iss) ...@@ -1014,6 +1014,7 @@ static int iss_get_clocks(struct iss_device *iss)
iss->iss_ctrlclk = devm_clk_get(iss->dev, "iss_ctrlclk"); iss->iss_ctrlclk = devm_clk_get(iss->dev, "iss_ctrlclk");
if (IS_ERR(iss->iss_ctrlclk)) { if (IS_ERR(iss->iss_ctrlclk)) {
dev_err(iss->dev, "Unable to get iss_ctrlclk clock info\n"); dev_err(iss->dev, "Unable to get iss_ctrlclk clock info\n");
iss_put_clocks(iss);
return PTR_ERR(iss->iss_ctrlclk); return PTR_ERR(iss->iss_ctrlclk);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment