Commit 3117ddda authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

media: atomisp: fix an inverted logic



When changing the IFs to select isp2401 at runtime, one of
the conditions ended by being written wrong.

Code double-checked on both Yocto Aero's driver version and
against the previous code.

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 1351ea6b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4585,10 +4585,10 @@ int atomisp_css_isr_thread(struct atomisp_device *isp,
		}
	}

	if (!atomisp_hw_is_isp2401)
	if (atomisp_hw_is_isp2401)
		return 0;

	/* ISP2401: If there are no buffers queued then delete wdt timer. */
	/* ISP2400: If there are no buffers queued then delete wdt timer. */
	for (i = 0; i < isp->num_of_streams; i++) {
		asd = &isp->asd[i];
		if (!asd)