Commit b55d39b2 authored by Leopoldo Cerbaro's avatar Leopoldo Cerbaro Committed by Dave Jones

fix null agp_bridge.dev with KT400

parent 20b2d400
......@@ -168,7 +168,7 @@ static int __init via_kt400_setup(struct pci_dev *pdev)
agp_bridge.resume = agp_generic_resume;
agp_bridge.cant_use_aperture = 0;
pci_read_config_byte(agp_bridge.dev, VIA_AGPSEL, &reg);
pci_read_config_byte(pdev, VIA_AGPSEL, &reg);
if ((reg & (1<<1))==1) {
/* AGP 2.0 compatability mode. */
agp_bridge.agp_enable = agp_generic_agp_enable;
......
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