diff options
author | Laurent Pinchart <[email protected]> | 2023-01-27 02:21:57 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <[email protected]> | 2023-02-08 09:05:47 +0100 |
commit | 8ccfc15380e95e0219c42bc4bb3498d2bdb2cfb6 (patch) | |
tree | 7eb4a024f756d8df5853fbab73e2bb2e0b7db959 | |
parent | db56a4fb6923a37b437a9806189d13c89c38448b (diff) |
media: imx: imx7-media-csi: Drop unneeded src_sd check
The .s_stream() and .link_validate() operations can't be called with a
NULL src_sd, as subdev nodes are not registered before the async
notifier completes. Remove the unneeded checks.
Signed-off-by: Laurent Pinchart <[email protected]>
Tested-by: Adam Ford <[email protected]> #imx8mm-beacon-kit
Acked-by: Rui Miguel Silva <[email protected]>
Tested-by: Martin Kepplinger <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
-rw-r--r-- | drivers/media/platform/nxp/imx7-media-csi.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/media/platform/nxp/imx7-media-csi.c b/drivers/media/platform/nxp/imx7-media-csi.c index 45b29d312276..62232cd6775f 100644 --- a/drivers/media/platform/nxp/imx7-media-csi.c +++ b/drivers/media/platform/nxp/imx7-media-csi.c @@ -1731,11 +1731,6 @@ static int imx7_csi_s_stream(struct v4l2_subdev *sd, int enable) mutex_lock(&csi->lock); - if (!csi->src_sd) { - ret = -EPIPE; - goto out_unlock; - } - if (enable) { ret = imx7_csi_init(csi); if (ret < 0) @@ -2026,9 +2021,6 @@ static int imx7_csi_pad_link_validate(struct v4l2_subdev *sd, unsigned int i; int ret; - if (!csi->src_sd) - return -EPIPE; - /* * Validate the source link, and record whether the source uses the * parallel input or the CSI-2 receiver. |