Skip to content

Commit 90c95c3

Browse files
AngeloGioacchino Del RegnoChun-Kuang Hu
authored andcommitted
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: AngeloGioacchino Del Regno <[email protected]> Reviewed-by: Fei Shao <[email protected]> Reviewed-by: CK Hu <[email protected]> Link: https://patchwork.kernel.org/project/dri-devel/patch/[email protected]/ Signed-off-by: Chun-Kuang Hu <[email protected]>
1 parent 846a7ae commit 90c95c3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/gpu/drm/mediatek/mtk_dpi.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,11 +1087,9 @@ static int mtk_dpi_probe(struct platform_device *pdev)
10871087
return 0;
10881088
}
10891089

1090-
static int mtk_dpi_remove(struct platform_device *pdev)
1090+
static void mtk_dpi_remove(struct platform_device *pdev)
10911091
{
10921092
component_del(&pdev->dev, &mtk_dpi_component_ops);
1093-
1094-
return 0;
10951093
}
10961094

10971095
static const struct of_device_id mtk_dpi_of_ids[] = {
@@ -1122,7 +1120,7 @@ MODULE_DEVICE_TABLE(of, mtk_dpi_of_ids);
11221120

11231121
struct platform_driver mtk_dpi_driver = {
11241122
.probe = mtk_dpi_probe,
1125-
.remove = mtk_dpi_remove,
1123+
.remove_new = mtk_dpi_remove,
11261124
.driver = {
11271125
.name = "mediatek-dpi",
11281126
.of_match_table = mtk_dpi_of_ids,

0 commit comments

Comments
 (0)