media: mediatek: vcodec: mtk_vcodec_dec_hw: Use devm_pm_runtime_enable()
authorFei Shao <fshao@chromium.org>
Mon, 15 May 2023 06:16:10 +0000 (14:16 +0800)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 25 May 2023 14:21:21 +0000 (16:21 +0200)
commitecdbab337da1c72a8bb9e2162a271943e3559a52
tree624ecc3a19981bd0f8208a0956b3a0c07bd6b7bd
parentbf950e1f3030ab310cdbc386e0ad3e531bc32de4
media: mediatek: vcodec: mtk_vcodec_dec_hw: Use devm_pm_runtime_enable()

Convert pm_runtime_enable() to the managed version, and clean up error
handling and unnecessary .remove() callback accordingly.

Signed-off-by: Fei Shao <fshao@chromium.org>
Reviewed-by: Alexandre Mergnat <amergnat@baylibre.com>
Suggested-by: Chen-Yu Tsai <wenst@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_hw.c