]> www.infradead.org Git - users/dwmw2/linux.git/commit
media: sun8i: Fix an error handling path in 'deinterlace_runtime_resume()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 5 May 2020 07:50:34 +0000 (09:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Jun 2020 07:32:38 +0000 (09:32 +0200)
commit5a8afc2775e0dc8a58c657968f7e1108ad35d65e
tree67cb0823ca65afdc685447616cc69dcfcf25f7a2
parent656287733538f82fe490a7cd931edc6c7a3b9966
media: sun8i: Fix an error handling path in 'deinterlace_runtime_resume()'

[ Upstream commit 62eedb356188376acd0368384a9b294d5180c00b ]

It is spurious to call 'clk_disable_unprepare()' when
'clk_prepare_enable()' has not been called yet.
Re-order the error handling path to avoid it.

Fixes: a4260ea49547 ("media: sun4i: Add H3 deinterlace driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
[hverkuil-cisco@xs4all.nl: err_exlusive_rate -> err_exclusive_rate]
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/platform/sunxi/sun8i-di/sun8i-di.c