media: imx: imx7-media-csi: fix missing clk_disable_unprepare() in imx7_csi_init()
authorYang Yingliang <yangyingliang@huawei.com>
Wed, 4 Jan 2023 09:39:21 +0000 (10:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:33:41 +0000 (09:33 +0100)
commit4bc6977fb45cc14f78504806f3be6fce1f4a1da0
tree41e0d04ace8c57f0940b175381bdf26209f664ec
parentbc868148531200ea3c79804ef4c843a873a2317a
media: imx: imx7-media-csi: fix missing clk_disable_unprepare() in imx7_csi_init()

[ Upstream commit cea606d9e996a77eed57fc60709e0728341450e3 ]

Add missing clk_disable_unprepare(), if imx7_csi_dma_setup() fails
in imx7_csi_init().

Fixes: ff43ca911978 ("media: imx: imx7-media-csi: Move CSI configuration before source start")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Rui Miguel Silva <rmfrfs@gmail.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/staging/media/imx/imx7-media-csi.c