auxdisplay: seg-led-gpio: Convert to platform remove callback returning void
[linux-2.6-block.git] / drivers / auxdisplay / seg-led-gpio.c
index 35a8dbb1e9d2762af6e11a3ae202af07c3aced18..183ab3011cbb1904e1c5ae40705a33b73ff859f3 100644 (file)
@@ -81,14 +81,12 @@ static int seg_led_probe(struct platform_device *pdev)
        return linedisp_register(&priv->linedisp, dev, 1, &seg_led_linedisp_ops);
 }
 
-static int seg_led_remove(struct platform_device *pdev)
+static void seg_led_remove(struct platform_device *pdev)
 {
        struct seg_led_priv *priv = platform_get_drvdata(pdev);
 
        cancel_delayed_work_sync(&priv->work);
        linedisp_unregister(&priv->linedisp);
-
-       return 0;
 }
 
 static const struct of_device_id seg_led_of_match[] = {
@@ -99,7 +97,7 @@ MODULE_DEVICE_TABLE(of, seg_led_of_match);
 
 static struct platform_driver seg_led_driver = {
        .probe = seg_led_probe,
-       .remove = seg_led_remove,
+       .remove_new = seg_led_remove,
        .driver = {
                .name = "seg-led-gpio",
                .of_match_table = seg_led_of_match,