Commit cde9ada3 authored by Dave Jones's avatar Dave Jones Committed by Dave Jones

[AGP] misplaced setting of bridge device.

parent 95505928
...@@ -596,6 +596,8 @@ static int __init agp_find_supported_device(struct pci_dev *dev) ...@@ -596,6 +596,8 @@ static int __init agp_find_supported_device(struct pci_dev *dev)
return -ENODEV; return -ENODEV;
} }
agp_bridge.dev = dev;
switch (dev->device) { switch (dev->device) {
case PCI_DEVICE_ID_SERVERWORKS_HE: case PCI_DEVICE_ID_SERVERWORKS_HE:
agp_bridge.type = SVWRKS_HE; agp_bridge.type = SVWRKS_HE;
...@@ -620,7 +622,6 @@ static int __init agp_find_supported_device(struct pci_dev *dev) ...@@ -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) static int __init agp_serverworks_probe (struct pci_dev *dev, const struct pci_device_id *ent)
{ {
if (agp_find_supported_device(dev) == 0) { if (agp_find_supported_device(dev) == 0) {
agp_bridge.dev = dev;
agp_register_driver(dev); agp_register_driver(dev);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment