Merge tag 'pci-v6.9-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci
[linux-2.6-microblaze.git] / drivers / pci / switch / switchtec.c
index 1804794..5a4adf6 100644 (file)
@@ -1672,7 +1672,7 @@ static int switchtec_pci_probe(struct pci_dev *pdev,
        rc = switchtec_init_isr(stdev);
        if (rc) {
                dev_err(&stdev->dev, "failed to init isr.\n");
-               goto err_put;
+               goto err_exit_pci;
        }
 
        iowrite32(SWITCHTEC_EVENT_CLEAR |
@@ -1693,6 +1693,8 @@ static int switchtec_pci_probe(struct pci_dev *pdev,
 
 err_devadd:
        stdev_kill(stdev);
+err_exit_pci:
+       switchtec_exit_pci(stdev);
 err_put:
        ida_free(&switchtec_minor_ida, MINOR(stdev->dev.devt));
        put_device(&stdev->dev);