From: Laurent Pinchart Date: Mon, 15 Feb 2021 04:27:10 +0000 (+0100) Subject: media: imx: imx7-media-csi: Don't set the buffer stride when disabling X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5f09f37a7db95f5b625c6ede05ea499e3c051b36;p=linux.git media: imx: imx7-media-csi: Don't set the buffer stride when disabling There's no need to set the buffer stride to 0 when disabling the CSI. Remove the extraneous register write. Signed-off-by: Laurent Pinchart Reviewed-by: Rui Miguel Silva Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/staging/media/imx/imx7-media-csi.c b/drivers/staging/media/imx/imx7-media-csi.c index b4bd161bec402..ac6763f8810d2 100644 --- a/drivers/staging/media/imx/imx7-media-csi.c +++ b/drivers/staging/media/imx/imx7-media-csi.c @@ -616,8 +616,6 @@ static void imx7_csi_disable(struct imx7_csi *csi) imx7_csi_hw_disable_irq(csi); - imx7_csi_buf_stride_set(csi, 0); - imx7_csi_hw_disable(csi); }