* [NET] sgiseeq: Fix return type of sgiseeq_remove
@ 2007-08-22 15:03 Ralf Baechle
2007-08-25 4:41 ` Jeff Garzik
0 siblings, 1 reply; 2+ messages in thread
From: Ralf Baechle @ 2007-08-22 15:03 UTC (permalink / raw)
To: Andrew Morton, Jeff Garzik, netdev
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 <ralf@linux-mips.org>
diff --git a/drivers/net/sgiseeq.c b/drivers/net/sgiseeq.c
index 384b468..0fb74cb 100644
--- a/drivers/net/sgiseeq.c
+++ b/drivers/net/sgiseeq.c
@@ -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 = {
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-08-25 4:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-22 15:03 [NET] sgiseeq: Fix return type of sgiseeq_remove Ralf Baechle
2007-08-25 4:41 ` Jeff Garzik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).