]> err.no Git - linux-2.6/blobdiff - drivers/message/fusion/mptspi.c
[SCSI] mptfusion - adding = THIS_MODULE
[linux-2.6] / drivers / message / fusion / mptspi.c
index 587d1274fd74f665dc3f477b04141096c147c530..9431d386c72abbd6d5d848b7e5cbcbb622bb1fd5 100644 (file)
@@ -103,6 +103,7 @@ static int  mptspiTaskCtx = -1;
 static int     mptspiInternalCtx = -1; /* Used only for internal commands */
 
 static struct scsi_host_template mptspi_driver_template = {
+       .module                         = THIS_MODULE,
        .proc_name                      = "mptspi",
        .proc_info                      = mptscsih_proc_info,
        .name                           = "MPT SPI Host",
@@ -199,7 +200,7 @@ mptspi_probe(struct pci_dev *pdev, const struct pci_device_id *id)
                printk(MYIOC_s_WARN_FMT
                        "Skipping ioc=%p because SCSI Initiator mode is NOT enabled!\n",
                        ioc->name, ioc);
-               return -ENODEV;
+               return 0;
        }
 
        sh = scsi_host_alloc(&mptspi_driver_template, sizeof(MPT_SCSI_HOST));