Commit cd39bceb authored by Dave Jones's avatar Dave Jones Committed by Linus Torvalds

[PATCH] cciss unregister cleanup

From Herbert Xu

The following patches against 2.4 and 2.5 makes cciss unregister properly
if initialisation fails.
parent ea3323f1
......@@ -2623,12 +2623,8 @@ int __init cciss_init(void)
{
printk(KERN_INFO DRIVER_NAME "\n");
/* Register for out PCI devices */
if (pci_register_driver(&cciss_pci_driver) > 0 )
return 0;
else
return -ENODEV;
/* Register for our PCI devices */
return pci_register_driver(&cciss_pci_driver);
}
static int __init init_cciss_module(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment