Commit 567cf042 authored by Linus Torvalds's avatar Linus Torvalds

Don't make the intel-AGP driver require a AGP capabilities

pointer. The integrated graphics AGP things don't have one.
parent f4e0fb85
......@@ -1275,8 +1275,6 @@ static int __init agp_intel_probe(struct pci_dev *pdev,
u8 cap_ptr = 0;
cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP);
if (!cap_ptr)
return -ENODEV;
bridge = agp_alloc_bridge();
if (!bridge)
......@@ -1417,9 +1415,11 @@ static int __init agp_intel_probe(struct pci_dev *pdev,
printk(KERN_INFO PFX "Detected an Intel %s Chipset.\n", name);
/* Fill in the mode register */
if (cap_ptr) {
pci_read_config_dword(pdev,
bridge->capndx+PCI_AGP_STATUS,
&bridge->mode);
}
pci_set_drvdata(pdev, bridge);
return agp_add_bridge(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