Pull dock into test branch
[powerpc.git] / drivers / infiniband / hw / amso1100 / c2.c
index 9e7bd94..27fe242 100644 (file)
@@ -1155,7 +1155,8 @@ static int __devinit c2_probe(struct pci_dev *pcidev,
                goto bail10;
        }
 
-       c2_register_device(c2dev);
+       if (c2_register_device(c2dev))
+               goto bail10;
 
        return 0;