[PATCH 21/50] staging: media: imx: imx7-media-csi: Don't initialize unused fields

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The imx_media_dev structure contains three fields that are not used by
this driver or any helper code that it calls. Don't initialize them.

Signed-off-by: Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx>
---
 drivers/staging/media/imx/imx7-media-csi.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/drivers/staging/media/imx/imx7-media-csi.c b/drivers/staging/media/imx/imx7-media-csi.c
index b6643952da25..7e932884fd02 100644
--- a/drivers/staging/media/imx/imx7-media-csi.c
+++ b/drivers/staging/media/imx/imx7-media-csi.c
@@ -1821,8 +1821,6 @@ static int imx7_csi_media_dev_init(struct imx7_csi *csi)
 	imxmd->md.ops = &imx7_csi_media_ops;
 	imxmd->md.dev = csi->dev;
 
-	mutex_init(&imxmd->mutex);
-
 	imxmd->v4l2_dev.mdev = &imxmd->md;
 	strscpy(imxmd->v4l2_dev.name, "imx-media",
 		sizeof(imxmd->v4l2_dev.name));
@@ -1838,10 +1836,6 @@ static int imx7_csi_media_dev_init(struct imx7_csi *csi)
 		goto cleanup;
 	}
 
-	INIT_LIST_HEAD(&imxmd->vdev_list);
-
-	v4l2_async_nf_init(&imxmd->notifier);
-
 	return 0;
 
 cleanup:
-- 
Regards,

Laurent Pinchart




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux