diff options
Diffstat (limited to 'drivers/scsi/aacraid')
-rw-r--r-- | drivers/scsi/aacraid/linit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/aacraid/linit.c b/drivers/scsi/aacraid/linit.c index fbd4f5538ac1..9437a4c8b64a 100644 --- a/drivers/scsi/aacraid/linit.c +++ b/drivers/scsi/aacraid/linit.c | |||
@@ -1023,7 +1023,8 @@ static int __init aac_init(void) | |||
1023 | 1023 | ||
1024 | static void __exit aac_exit(void) | 1024 | static void __exit aac_exit(void) |
1025 | { | 1025 | { |
1026 | unregister_chrdev(aac_cfg_major, "aac"); | 1026 | if (aac_cfg_major > -1) |
1027 | unregister_chrdev(aac_cfg_major, "aac"); | ||
1027 | pci_unregister_driver(&aac_pci_driver); | 1028 | pci_unregister_driver(&aac_pci_driver); |
1028 | } | 1029 | } |
1029 | 1030 | ||