drm/sprd: Convert to platform remove callback returning void
[linux-2.6-microblaze.git] / drivers / gpu / drm / sprd / sprd_dpu.c
index 48183bb..deb3bb9 100644 (file)
@@ -859,16 +859,14 @@ static int sprd_dpu_probe(struct platform_device *pdev)
        return component_add(&pdev->dev, &dpu_component_ops);
 }
 
-static int sprd_dpu_remove(struct platform_device *pdev)
+static void sprd_dpu_remove(struct platform_device *pdev)
 {
        component_del(&pdev->dev, &dpu_component_ops);
-
-       return 0;
 }
 
 struct platform_driver sprd_dpu_driver = {
        .probe = sprd_dpu_probe,
-       .remove = sprd_dpu_remove,
+       .remove_new = sprd_dpu_remove,
        .driver = {
                .name = "sprd-dpu-drv",
                .of_match_table = dpu_match_table,