ARM: Convert to platform remove callback returning void
[linux-2.6-block.git] / arch / arm / common / locomo.c
index da30a4d4f35cd0751da37d6dcae7592618df0543..309b7478346844987bf08f45fbb1b1190d50a2b0 100644 (file)
@@ -494,7 +494,7 @@ static int locomo_probe(struct platform_device *dev)
        return __locomo_probe(&dev->dev, mem, irq);
 }
 
-static int locomo_remove(struct platform_device *dev)
+static void locomo_remove(struct platform_device *dev)
 {
        struct locomo *lchip = platform_get_drvdata(dev);
 
@@ -502,8 +502,6 @@ static int locomo_remove(struct platform_device *dev)
                __locomo_remove(lchip);
                platform_set_drvdata(dev, NULL);
        }
-
-       return 0;
 }
 
 /*
@@ -514,7 +512,7 @@ static int locomo_remove(struct platform_device *dev)
  */
 static struct platform_driver locomo_device_driver = {
        .probe          = locomo_probe,
-       .remove         = locomo_remove,
+       .remove_new     = locomo_remove,
 #ifdef CONFIG_PM
        .suspend        = locomo_suspend,
        .resume         = locomo_resume,