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 <khali@linux-fr.org> Cc: Pat Gefre <pfg@sgi.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
2ea5d35a49
commit
9385565e20
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user