]> err.no Git - linux-2.6/commitdiff
[SCSI] aic7xxx: do not check for duplicate pci ids
authorChristoph Hellwig <hch@lst.de>
Fri, 10 Jun 2005 22:15:31 +0000 (00:15 +0200)
committerJames Bottomley <jejb@titanic.(none)>
Sat, 11 Jun 2005 23:38:41 +0000 (18:38 -0500)
pci layer handles this just fine for us

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/aic7xxx/aic7xxx_osm_pci.c

index 2a0ebce83e7a61c4e0b11903fb523bdcd877fd21..9cd4fe1c4ef2ce7133022fe11dfe72e1bd1b00a6 100644 (file)
@@ -174,22 +174,6 @@ ahc_linux_pci_dev_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
        char            *name;
        int              error;
 
-       /*
-        * Some BIOSen report the same device multiple times.
-        */
-       TAILQ_FOREACH(ahc, &ahc_tailq, links) {
-               struct pci_dev *probed_pdev;
-
-               probed_pdev = ahc->dev_softc;
-               if (probed_pdev->bus->number == pdev->bus->number
-                && probed_pdev->devfn == pdev->devfn)
-                       break;
-       }
-       if (ahc != NULL) {
-               /* Skip duplicate. */
-               return (-ENODEV);
-       }
-
        pci = pdev;
        entry = ahc_find_pci_device(pci);
        if (entry == NULL)