staging: crystalhd: call disable_pci_device() if pci_probe() failed
[pandora-kernel.git] / drivers / staging / crystalhd / crystalhd_lnx.c
index fbb80f0..115e79b 100644 (file)
@@ -570,6 +570,7 @@ static int __devinit chd_dec_pci_probe(struct pci_dev *pdev,
        rc = chd_pci_reserve_mem(pinfo);
        if (rc) {
                BCMLOG_ERR("Failed to setup memory regions.\n");
+               pci_disable_device(pdev);
                return -ENOMEM;
        }