Commit 90c95c38 authored by AngeloGioacchino Del Regno's avatar AngeloGioacchino Del Regno Committed by Chun-Kuang Hu

drm/mediatek: mtk_dpi: Switch to .remove_new() void callback

The .remove() callback cannot fail: switch to .remove_new() and
change mtk_dpi_remove() to void.
Signed-off-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: default avatarFei Shao <fshao@chromium.org>
Reviewed-by: default avatarCK Hu <ck.hu@mediatek.com>
Link: https://patchwork.kernel.org/project/dri-devel/patch/20230726082245.550929-5-angelogioacchino.delregno@collabora.com/Signed-off-by: default avatarChun-Kuang Hu <chunkuang.hu@kernel.org>
parent 846a7ae1
...@@ -1087,11 +1087,9 @@ static int mtk_dpi_probe(struct platform_device *pdev) ...@@ -1087,11 +1087,9 @@ static int mtk_dpi_probe(struct platform_device *pdev)
return 0; return 0;
} }
static int mtk_dpi_remove(struct platform_device *pdev) static void mtk_dpi_remove(struct platform_device *pdev)
{ {
component_del(&pdev->dev, &mtk_dpi_component_ops); component_del(&pdev->dev, &mtk_dpi_component_ops);
return 0;
} }
static const struct of_device_id mtk_dpi_of_ids[] = { static const struct of_device_id mtk_dpi_of_ids[] = {
...@@ -1122,7 +1120,7 @@ MODULE_DEVICE_TABLE(of, mtk_dpi_of_ids); ...@@ -1122,7 +1120,7 @@ MODULE_DEVICE_TABLE(of, mtk_dpi_of_ids);
struct platform_driver mtk_dpi_driver = { struct platform_driver mtk_dpi_driver = {
.probe = mtk_dpi_probe, .probe = mtk_dpi_probe,
.remove = mtk_dpi_remove, .remove_new = mtk_dpi_remove,
.driver = { .driver = {
.name = "mediatek-dpi", .name = "mediatek-dpi",
.of_match_table = mtk_dpi_of_ids, .of_match_table = mtk_dpi_of_ids,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment