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 eea888c commit ebdf051Copy full SHA for ebdf051
drivers/scsi/ipr.c
@@ -10858,11 +10858,19 @@ static struct notifier_block ipr_notifier = {
10858
**/
10859
static int __init ipr_init(void)
10860
{
10861
+ int rc;
10862
+
10863
ipr_info("IBM Power RAID SCSI Device Driver version: %s %s\n",
10864
IPR_DRIVER_VERSION, IPR_DRIVER_DATE);
10865
10866
register_reboot_notifier(&ipr_notifier);
- return pci_register_driver(&ipr_driver);
10867
+ rc = pci_register_driver(&ipr_driver);
10868
+ if (rc) {
10869
+ unregister_reboot_notifier(&ipr_notifier);
10870
+ return rc;
10871
+ }
10872
10873
+ return 0;
10874
}
10875
10876
/**
0 commit comments