]> git.neil.brown.name Git - history.git/commitdiff
[AGP] misplaced setting of bridge device.
authorDave Jones <davej@codemonkey.org.uk>
Fri, 20 Dec 2002 11:03:32 +0000 (10:03 -0100)
committerDave Jones <davej@tetrachloride.(none)>
Fri, 20 Dec 2002 11:03:32 +0000 (10:03 -0100)
drivers/char/agp/sworks-agp.c

index d705a0852a097796c0efdd8c0423ced68ee4dee1..d9d47c773c4e64859d72875d60a634e65c5e27f6 100644 (file)
@@ -596,6 +596,8 @@ static int __init agp_find_supported_device(struct pci_dev *dev)
                return -ENODEV;
        }
 
+       agp_bridge.dev = dev;
+
        switch (dev->device) {
        case PCI_DEVICE_ID_SERVERWORKS_HE:
                agp_bridge.type = SVWRKS_HE;
@@ -620,7 +622,6 @@ static int __init agp_find_supported_device(struct pci_dev *dev)
 static int __init agp_serverworks_probe (struct pci_dev *dev, const struct pci_device_id *ent)
 {
        if (agp_find_supported_device(dev) == 0) {
-               agp_bridge.dev = dev;
                agp_register_driver(dev);
                return 0;
        }