From: Rahul Ruikar Date: Sun, 26 Sep 2010 11:30:29 +0000 (+0530) Subject: pcmcia: pd6729: Fix error path X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=40d24ff9b4309d37999bc0ae91a271f57651d9dd;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git pcmcia: pd6729: Fix error path In error return path call pci_disable_device() which was enabled earlier. Signed-off-by: Rahul Ruikar Signed-off-by: Dominik Brodowski --- diff --git a/drivers/pcmcia/pd6729.c b/drivers/pcmcia/pd6729.c index b8a869af0f4..deef6656ab7 100644 --- a/drivers/pcmcia/pd6729.c +++ b/drivers/pcmcia/pd6729.c @@ -646,7 +646,7 @@ static int __devinit pd6729_pci_probe(struct pci_dev *dev, if (!pci_resource_start(dev, 0)) { dev_warn(&dev->dev, "refusing to load the driver as the " "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 "