sgiseeq: Fix return type of sgiseeq_remove
authorRalf Baechle <[email protected]>
Wed, 22 Aug 2007 15:03:52 +0000 (16:03 +0100)
committerJeff Garzik <[email protected]>
Sat, 25 Aug 2007 06:31:13 +0000 (02:31 -0400)
The driver remove method needs to return an int not void.  This was just
never noticed because usually this driver is not being built as a module.

Signed-off-by: Ralf Baechle <[email protected]>
Signed-off-by: Jeff Garzik <[email protected]>
drivers/net/sgiseeq.c

index 384b4685e977a453884d56fc81c4f2b0747680da..0fb74cb51c4bed2eaccd46287eaa7f02181b873e 100644 (file)
@@ -726,7 +726,7 @@ err_out:
        return err;
 }
 
-static void __exit sgiseeq_remove(struct platform_device *pdev)
+static int __exit sgiseeq_remove(struct platform_device *pdev)
 {
        struct net_device *dev = platform_get_drvdata(pdev);
        struct sgiseeq_private *sp = netdev_priv(dev);
@@ -735,6 +735,8 @@ static void __exit sgiseeq_remove(struct platform_device *pdev)
        free_page((unsigned long) sp->srings);
        free_netdev(dev);
        platform_set_drvdata(pdev, NULL);
+
+       return 0;
 }
 
 static struct platform_driver sgiseeq_driver = {