drm/sti: Convert to platform remove callback returning void
[linux-2.6-microblaze.git] / drivers / gpu / drm / sti / sti_hda.c
index 15097ac..6ee3561 100644 (file)
@@ -792,10 +792,9 @@ static int sti_hda_probe(struct platform_device *pdev)
        return component_add(&pdev->dev, &sti_hda_ops);
 }
 
-static int sti_hda_remove(struct platform_device *pdev)
+static void sti_hda_remove(struct platform_device *pdev)
 {
        component_del(&pdev->dev, &sti_hda_ops);
-       return 0;
 }
 
 static const struct of_device_id hda_of_match[] = {
@@ -812,7 +811,7 @@ struct platform_driver sti_hda_driver = {
                .of_match_table = hda_of_match,
        },
        .probe = sti_hda_probe,
-       .remove = sti_hda_remove,
+       .remove_new = sti_hda_remove,
 };
 
 MODULE_AUTHOR("Benjamin Gaignard <benjamin.gaignard@st.com>");