drm/vc4: Convert to platform remove callback returning void
[linux-2.6-microblaze.git] / drivers / gpu / drm / vc4 / vc4_txp.c
index c5abdec..6cdd97f 100644 (file)
@@ -573,10 +573,9 @@ static int vc4_txp_probe(struct platform_device *pdev)
        return component_add(&pdev->dev, &vc4_txp_ops);
 }
 
-static int vc4_txp_remove(struct platform_device *pdev)
+static void vc4_txp_remove(struct platform_device *pdev)
 {
        component_del(&pdev->dev, &vc4_txp_ops);
-       return 0;
 }
 
 static const struct of_device_id vc4_txp_dt_match[] = {
@@ -586,7 +585,7 @@ static const struct of_device_id vc4_txp_dt_match[] = {
 
 struct platform_driver vc4_txp_driver = {
        .probe = vc4_txp_probe,
-       .remove = vc4_txp_remove,
+       .remove_new = vc4_txp_remove,
        .driver = {
                .name = "vc4_txp",
                .of_match_table = vc4_txp_dt_match,