* Checks the rc of pci_register_driver and unregister when necessary drivers/block/cpqarray.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) --- linux-2.4.24/drivers/block/cpqarray.c~cpqarray_pci_unregister Wed Jan 28 16:56:39 2004 +++ linux-2.4.24-root/drivers/block/cpqarray.c Wed Jan 28 17:01:10 2004 @@ -623,7 +623,8 @@ int __init cpqarray_init(void) /* detect controllers */ printk(DRIVER_NAME "\n"); - pci_register_driver(&cpqarray_pci_driver); + if (!pci_register_driver(&cpqarray_pci_driver)) + pci_unregister_driver(&cpqarray_pci_driver); cpqarray_eisa_detect(); for(i=0; i< MAX_CTLR; i++) { _