mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-11 23:23:52 +08:00
[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: Vitaly Osipov <vitaly.osipov@gmail.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
parent
63ddf68de5
commit
d4b3264646
@ -1014,6 +1014,7 @@ static int iss_get_clocks(struct iss_device *iss)
|
||||
iss->iss_ctrlclk = devm_clk_get(iss->dev, "iss_ctrlclk");
|
||||
if (IS_ERR(iss->iss_ctrlclk)) {
|
||||
dev_err(iss->dev, "Unable to get iss_ctrlclk clock info\n");
|
||||
iss_put_clocks(iss);
|
||||
return PTR_ERR(iss->iss_ctrlclk);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user