ARM: Convert to platform remove callback returning void
[linux-2.6-microblaze.git] / arch / arm / mach-sa1100 / neponset.c
index 6876bc1..0ef0ebb 100644 (file)
@@ -376,7 +376,7 @@ static int neponset_probe(struct platform_device *dev)
        return ret;
 }
 
-static int neponset_remove(struct platform_device *dev)
+static void neponset_remove(struct platform_device *dev)
 {
        struct neponset_drvdata *d = platform_get_drvdata(dev);
        int irq = platform_get_irq(dev, 0);
@@ -395,8 +395,6 @@ static int neponset_remove(struct platform_device *dev)
        nep = NULL;
        iounmap(d->base);
        kfree(d);
-
-       return 0;
 }
 
 #ifdef CONFIG_PM_SLEEP
@@ -425,7 +423,7 @@ static const struct dev_pm_ops neponset_pm_ops = {
 
 static struct platform_driver neponset_device_driver = {
        .probe          = neponset_probe,
-       .remove         = neponset_remove,
+       .remove_new     = neponset_remove,
        .driver         = {
                .name   = "neponset",
                .pm     = PM_OPS,