Commit 40d24ff9 authored by Rahul Ruikar's avatar Rahul Ruikar Committed by Dominik Brodowski

pcmcia: pd6729: Fix error path

In error return path
call pci_disable_device() which was enabled earlier.
Signed-off-by: default avatarRahul Ruikar <rahul.ruikar@gmail.com>
Signed-off-by: default avatarDominik Brodowski <linux@dominikbrodowski.net>
parent 7cdffc86
...@@ -646,7 +646,7 @@ static int __devinit pd6729_pci_probe(struct pci_dev *dev, ...@@ -646,7 +646,7 @@ static int __devinit pd6729_pci_probe(struct pci_dev *dev,
if (!pci_resource_start(dev, 0)) { if (!pci_resource_start(dev, 0)) {
dev_warn(&dev->dev, "refusing to load the driver as the " dev_warn(&dev->dev, "refusing to load the driver as the "
"io_base is NULL.\n"); "io_base is NULL.\n");
goto err_out_free_mem; goto err_out_disable;
} }
dev_info(&dev->dev, "Cirrus PD6729 PCI to PCMCIA Bridge at 0x%llx " dev_info(&dev->dev, "Cirrus PD6729 PCI to PCMCIA Bridge at 0x%llx "
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment