diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c index 99b37e19fecab8..86e2d3033a2db6 100644 --- a/drivers/scsi/ipr.c +++ b/drivers/scsi/ipr.c @@ -10858,11 +10858,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; } /**