diff options
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/sh_mobile_ceu_camera.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/media/video/sh_mobile_ceu_camera.c b/drivers/media/video/sh_mobile_ceu_camera.c index 59101c0be869..5c8ddd821df6 100644 --- a/drivers/media/video/sh_mobile_ceu_camera.c +++ b/drivers/media/video/sh_mobile_ceu_camera.c | |||
@@ -717,10 +717,13 @@ static void capture_restore(struct sh_mobile_ceu_dev *pcdev, u32 capsr) | |||
717 | static struct v4l2_subdev *find_bus_subdev(struct sh_mobile_ceu_dev *pcdev, | 717 | static struct v4l2_subdev *find_bus_subdev(struct sh_mobile_ceu_dev *pcdev, |
718 | struct soc_camera_device *icd) | 718 | struct soc_camera_device *icd) |
719 | { | 719 | { |
720 | if (!pcdev->csi2_pdev) | 720 | if (pcdev->csi2_pdev) { |
721 | return soc_camera_to_subdev(icd); | 721 | struct v4l2_subdev *csi2_sd = find_csi2(pcdev); |
722 | if (csi2_sd && csi2_sd->grp_id == (u32)icd) | ||
723 | return csi2_sd; | ||
724 | } | ||
722 | 725 | ||
723 | return find_csi2(pcdev); | 726 | return soc_camera_to_subdev(icd); |
724 | } | 727 | } |
725 | 728 | ||
726 | #define CEU_BUS_FLAGS (V4L2_MBUS_MASTER | \ | 729 | #define CEU_BUS_FLAGS (V4L2_MBUS_MASTER | \ |