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 c9f8354 commit eccbec0Copy full SHA for eccbec0
drivers/scsi/ipr.c
@@ -10843,11 +10843,19 @@ static struct notifier_block ipr_notifier = {
10843
**/
10844
static int __init ipr_init(void)
10845
{
10846
+ int rc;
10847
+
10848
ipr_info("IBM Power RAID SCSI Device Driver version: %s %s\n",
10849
IPR_DRIVER_VERSION, IPR_DRIVER_DATE);
10850
10851
register_reboot_notifier(&ipr_notifier);
- return pci_register_driver(&ipr_driver);
10852
+ rc = pci_register_driver(&ipr_driver);
10853
+ if (rc) {
10854
+ unregister_reboot_notifier(&ipr_notifier);
10855
+ return rc;
10856
+ }
10857
10858
+ return 0;
10859
}
10860
10861
/**
0 commit comments