drm/sti: Convert to platform remove callback returning void
[linux-2.6-microblaze.git] / drivers / gpu / drm / sti / sti_dvo.c
index 0c6679e..fd1df4c 100644 (file)
@@ -567,10 +567,9 @@ static int sti_dvo_probe(struct platform_device *pdev)
        return component_add(&pdev->dev, &sti_dvo_ops);
 }
 
-static int sti_dvo_remove(struct platform_device *pdev)
+static void sti_dvo_remove(struct platform_device *pdev)
 {
        component_del(&pdev->dev, &sti_dvo_ops);
-       return 0;
 }
 
 static const struct of_device_id dvo_of_match[] = {
@@ -586,7 +585,7 @@ struct platform_driver sti_dvo_driver = {
                .of_match_table = dvo_of_match,
        },
        .probe = sti_dvo_probe,
-       .remove = sti_dvo_remove,
+       .remove_new = sti_dvo_remove,
 };
 
 MODULE_AUTHOR("Benjamin Gaignard <benjamin.gaignard@st.com>");