[PATCH] media: mediatek: vcodec: Convert mtk_vcodec_dec_hw platform remove callback
Fei Shao
fshao at chromium.org
Wed May 10 08:31:35 PDT 2023
This aligns with [1] and converts the platform remove callback to
.remove_new(), which returns void.
[1]: commit a3afc5b10661 ("media: mtk_vcodec_dec_drv: Convert to
platform remove callback returning void")
Signed-off-by: Fei Shao <fshao at chromium.org>
---
drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_hw.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_hw.c b/drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_hw.c
index b753bf54ebd9..bd5743723da6 100644
--- a/drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_hw.c
+++ b/drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_hw.c
@@ -193,16 +193,14 @@ static int mtk_vdec_hw_probe(struct platform_device *pdev)
return ret;
}
-static int mtk_vdec_hw_remove(struct platform_device *pdev)
+static void mtk_vdec_hw_remove(struct platform_device *pdev)
{
pm_runtime_disable(&pdev->dev);
-
- return 0;
}
static struct platform_driver mtk_vdec_driver = {
.probe = mtk_vdec_hw_probe,
- .remove = mtk_vdec_hw_remove,
+ .remove_new = mtk_vdec_hw_remove,
.driver = {
.name = "mtk-vdec-comp",
.of_match_table = mtk_vdec_hw_match,
--
2.40.1.521.gf1e218fcd8-goog
More information about the linux-arm-kernel
mailing list