Skip to content

Commit

Permalink
sgiseeq: Fix return type of sgiseeq_remove
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Ralf Baechle authored and Jeff Garzik committed Aug 25, 2007
1 parent c2cb71f commit e3efb05
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/net/sgiseeq.c
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ static int __init sgiseeq_probe(struct platform_device *pdev)
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);
Expand All @@ -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 = {
Expand Down

0 comments on commit e3efb05

Please sign in to comment.