]> git.ipfire.org Git - people/arne_f/kernel.git/blobdiff - drivers/scsi/csiostor/csio_init.c
Merge branch 'fixes' into misc
[people/arne_f/kernel.git] / drivers / scsi / csiostor / csio_init.c
index d5fb016b5fc21a1efcc432408cba41ccb8546b5b..28a9c7d706cb0ec3d63c2ab641d71fc687e90023 100644 (file)
@@ -970,10 +970,14 @@ static int csio_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
 
        pci_set_drvdata(pdev, hw);
 
-       if (csio_hw_start(hw) != 0) {
-               dev_err(&pdev->dev,
-                       "Failed to start FW, continuing in debug mode.\n");
-               return 0;
+       rv = csio_hw_start(hw);
+       if (rv) {
+               if (rv == -EINVAL) {
+                       dev_err(&pdev->dev,
+                               "Failed to start FW, continuing in debug mode.\n");
+                       return 0;
+               }
+               goto err_lnode_exit;
        }
 
        sprintf(hw->fwrev_str, "%u.%u.%u.%u\n",