Skip to content

Commit 8c86642

Browse files
committed
media: atomisp: unify the version for isp2401 a0 and b0 versions
Based on Yocto Aero's repository, the file name for the isp2401 is the same for the B0 release. So, unify it at the driver. Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 6456267 commit 8c86642

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

drivers/staging/media/atomisp/pci/atomisp_v4l2.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1449,14 +1449,8 @@ atomisp_load_firmware(struct atomisp_device *isp)
14491449
if (skip_fwload)
14501450
return NULL;
14511451

1452-
if (isp->media_dev.hw_revision ==
1453-
((ATOMISP_HW_REVISION_ISP2401 << ATOMISP_HW_REVISION_SHIFT)
1454-
| ATOMISP_HW_STEPPING_B0))
1455-
fw_path = "shisp_2401b0_v21.bin";
1456-
1457-
if (isp->media_dev.hw_revision ==
1458-
((ATOMISP_HW_REVISION_ISP2401 << ATOMISP_HW_REVISION_SHIFT)
1459-
| ATOMISP_HW_STEPPING_A0))
1452+
if ((isp->media_dev.hw_revision >> ATOMISP_HW_REVISION_SHIFT)
1453+
== ATOMISP_HW_REVISION_ISP2401)
14601454
fw_path = "shisp_2401a0_v21.bin";
14611455

14621456
if (isp->media_dev.hw_revision ==

0 commit comments

Comments
 (0)