media: c8sectpfe: Use the devm_clk_get_enabled() helper function
authorRuan Jinjie <ruanjinjie@huawei.com>
Fri, 18 Aug 2023 10:15:40 +0000 (18:15 +0800)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 27 Sep 2023 07:39:55 +0000 (09:39 +0200)
commita805136eec48c7f0e3b7dad44ec5efb506a938d8
treeebe15758d593ec15138041980f0839bfd38c9024
parent16fae979ed6b2753c07bdc9943cd9892349b69d4
media: c8sectpfe: Use the devm_clk_get_enabled() helper function

With devm_clk_get_enabled() the call to clk_disable_unprepare() can be
dropped from the error path and the remove callback.

Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.c