wan: wanxl: add pci_disable_device in case of error
[deliverable/linux.git] / drivers / net / wan / wanxl.c
index e73f138578468db3a83bd882856ce897a747f2c0..a20d688d259570467d83585962815f42be5bd38d 100644 (file)
@@ -586,6 +586,7 @@ static int wanxl_pci_init_one(struct pci_dev *pdev,
        if (pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(28)) ||
            pci_set_dma_mask(pdev, DMA_BIT_MASK(28))) {
                pr_err("No usable DMA configuration\n");
+               pci_disable_device(pdev);
                return -EIO;
        }
 
This page took 0.026043 seconds and 5 git commands to generate.