We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22666c5 commit 8c73902Copy full SHA for 8c73902
drivers/scsi/ipr.c
@@ -10872,11 +10872,19 @@ static struct notifier_block ipr_notifier = {
10872
**/
10873
static int __init ipr_init(void)
10874
{
10875
+ int rc;
10876
+
10877
ipr_info("IBM Power RAID SCSI Device Driver version: %s %s\n",
10878
IPR_DRIVER_VERSION, IPR_DRIVER_DATE);
10879
10880
register_reboot_notifier(&ipr_notifier);
- return pci_register_driver(&ipr_driver);
10881
+ rc = pci_register_driver(&ipr_driver);
10882
+ if (rc) {
10883
+ unregister_reboot_notifier(&ipr_notifier);
10884
+ return rc;
10885
+ }
10886
10887
+ return 0;
10888
}
10889
10890
/**
0 commit comments