diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c index c6cde552b995ec..5989c868bfe087 100644 --- a/drivers/scsi/ipr.c +++ b/drivers/scsi/ipr.c @@ -10854,11 +10854,19 @@ static struct notifier_block ipr_notifier = { **/ static int __init ipr_init(void) { + int rc; + ipr_info("IBM Power RAID SCSI Device Driver version: %s %s\n", IPR_DRIVER_VERSION, IPR_DRIVER_DATE); register_reboot_notifier(&ipr_notifier); - return pci_register_driver(&ipr_driver); + rc = pci_register_driver(&ipr_driver); + if (rc) { + unregister_reboot_notifier(&ipr_notifier); + return rc; + } + + return 0; } /**