]> git.hungrycats.org Git - linux/commitdiff
[AGPGART] K8 North bridge bus position is no longer relevant.
authorDave Jones <davej@codemonkey.org.uk>
Thu, 10 Jul 2003 20:12:07 +0000 (21:12 +0100)
committerDave Jones <davej@tetrachloride.(none)>
Thu, 10 Jul 2003 20:12:07 +0000 (21:12 +0100)
We search for it by PCI ID now.

drivers/char/agp/amd-k8-agp.c

index 29bb5a3061c0fc735428d9501bd32f2f9d692901..0221e203b75342cb454006a99d71b37d09581db2 100644 (file)
@@ -255,14 +255,10 @@ static int cache_nbs (void)
 
        /* cache pci_devs of northbridges. */
        while ((loop_dev = pci_find_device(PCI_VENDOR_ID_AMD, 0x1103, loop_dev)) != NULL) {
-               if (loop_dev->bus->number == 0 &&
-                   PCI_SLOT(loop_dev->devfn) >= 24 &&
-                   PCI_SLOT(loop_dev->devfn) <= 31) {
-                       hammers[i++] = loop_dev;
-                       nr_garts = i;
-                       if (i == MAX_HAMMER_GARTS)
-                               return -1;
-               }
+               hammers[i++] = loop_dev;
+               nr_garts = i;
+               if (i == MAX_HAMMER_GARTS)
+                       return -1;
        }
        return 0;
 }
@@ -333,13 +329,10 @@ static int __init agp_amdk8_probe(struct pci_dev *pdev,
        {
        struct pci_dev *loop_dev = NULL;
        while ((loop_dev = pci_find_device(PCI_VENDOR_ID_AMD, 0x1103, loop_dev)) != NULL) {
-               if (loop_dev->bus->number == 0 &&
-                   PCI_SLOT(loop_dev->devfn) == 24) { 
-                       /* For UP, we only care about the first GART. */
-                       hammers[0] = loop_dev;
-                       nr_garts = 1;
-                       break;
-               }
+               /* For UP, we only care about the first GART. */
+               hammers[0] = loop_dev;
+               nr_garts = 1;
+               break;
        }
        }
 #endif