> @@ -929,9 +932,14 @@ > printk(KERN_INFO "Adaptec %s driver (%s)\n", > AAC_DRIVERNAME, aac_driver_version); > > - error = pci_module_init(&aac_pci_driver); > - if (error) > + error = pci_register_driver(&aac_pci_driver); > + if (error < 0 || list_empty(&aac_devices)) { > + if (error >= 0) { > + pci_unregister_driver(&aac_pci_driver); > + error = -ENODEV; > + } > return error; The list_empty check is wrong. I driver should stay loaded even if no devices have been found. - : send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html