ioc3/ioc4: fix error path on driver registration

Two IOC3 and IOC4 drivers have broken error paths on registration.  Fix
them.

Signed-off-by: Jean Delvare <[email protected]>
Cc: Pat Gefre <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Jean Delvare 2009-12-14 18:00:28 -08:00 • committed by Linus Torvalds
commit 9385565e20
2 changed files with 14 additions and 4 deletions

View file

@ -820,7 +820,7 @@ static int __init ioc3_init(void)
{
if (ia64_platform_is("sn2"))
return pci_register_driver(&ioc3_driver);
return 0;
return -ENODEV;
}
/* Module unload */