Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 057ef1e5 authored by Vitaly Osipov's avatar Vitaly Osipov Committed by Mauro Carvalho Chehab
Browse files

[media] v4l: 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>
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 3ed1a002
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1029,7 +1029,7 @@ static int iss_get_clocks(struct iss_device *iss)
	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_fck);
		return PTR_ERR(iss->iss_ctrlclk);
	}

	return 0;