Commit 11b4295e authored by Dave Jones's avatar Dave Jones Committed by Dave Jones

[AGPGART] Fill out bridge structure with pdev before querying agp version.

parent 15ddfa3b
......@@ -398,7 +398,6 @@ static int __init agp_via_probe(struct pci_dev *pdev,
if (!bridge)
return -ENOMEM;
get_agp_version(bridge);
bridge->dev = pdev;
bridge->capndx = cap_ptr;
bridge->driver = &via_driver;
......@@ -415,6 +414,7 @@ static int __init agp_via_probe(struct pci_dev *pdev,
}
/* If this is an AGP3 bridge, check which mode its in and adjust. */
get_agp_version(bridge);
if (bridge->major_version >= 3)
check_via_agp3(bridge);
......
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