media: tegra-cec: Handle errors of clk_prepare_enable()
authorEvgeny Novikov <novikov@ispras.ru>
Wed, 28 Jul 2021 14:44:32 +0000 (16:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Sep 2021 11:40:25 +0000 (13:40 +0200)
commit4e014ff22e4bca97193bc36fd67c2233422690b6
treee7e7e04f69d66ce6de5d5c8db5dc99a2c297e926
parentc159db240cf27af29f4e4e747c8bd60faa5e34fa
media: tegra-cec: Handle errors of clk_prepare_enable()

[ Upstream commit 38367073c796a37a61549b1f66a71b3adb03802d ]

tegra_cec_probe() and tegra_cec_resume() ignored possible errors of
clk_prepare_enable(). The patch fixes this.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Evgeny Novikov <novikov@ispras.ru>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/cec/platform/tegra/tegra_cec.c