Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e3efb054 authored by Ralf Baechle's avatar Ralf Baechle Committed by Jeff Garzik
Browse files

sgiseeq: Fix return type of sgiseeq_remove



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: default avatarRalf Baechle <ralf@linux-mips.org>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent c2cb71fa
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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);
@@ -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 = {