diff options
author | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-05-12 20:32:51 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-05-20 14:51:29 +0200 |
commit | 3117ddda1ecef96e646b120681a606b41247df52 (patch) | |
tree | d28ea07fe03ad6c426d122e4e4598eb50d79e518 /drivers | |
parent | 1351ea6b04c8488d0bfde4a2ee55ae111f4a0b0d (diff) | |
download | linux-stable-3117ddda1ecef96e646b120681a606b41247df52.tar.gz linux-stable-3117ddda1ecef96e646b120681a606b41247df52.tar.bz2 linux-stable-3117ddda1ecef96e646b120681a606b41247df52.zip |
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: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/media/atomisp/pci/atomisp_compat_css20.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/media/atomisp/pci/atomisp_compat_css20.c b/drivers/staging/media/atomisp/pci/atomisp_compat_css20.c index 7afd12cba576..abc0fd91781a 100644 --- a/drivers/staging/media/atomisp/pci/atomisp_compat_css20.c +++ b/drivers/staging/media/atomisp/pci/atomisp_compat_css20.c @@ -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) |