firewire: ohci: propagate return code from soft_reset to probe and resume
[cascardo/linux.git] / drivers / firewire / ohci.c
index c2f5117..8bf8926 100644 (file)
@@ -2278,9 +2278,10 @@ static int ohci_enable(struct fw_card *card,
        u32 lps, version, irqs;
        int i, ret;
 
-       if (software_reset(ohci)) {
+       ret = software_reset(ohci);
+       if (ret < 0) {
                ohci_err(ohci, "failed to reset ohci card\n");
-               return -EBUSY;
+               return ret;
        }
 
        /*