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) ...@@ -2623,12 +2623,8 @@ int __init cciss_init(void)
{ {
printk(KERN_INFO DRIVER_NAME "\n"); printk(KERN_INFO DRIVER_NAME "\n");
/* Register for out PCI devices */ /* Register for our PCI devices */
if (pci_register_driver(&cciss_pci_driver) > 0 ) return pci_register_driver(&cciss_pci_driver);
return 0;
else
return -ENODEV;
} }
static int __init init_cciss_module(void) 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