Commit b8cf7cb7 authored by Dave Jones's avatar Dave Jones

[AGPGART] Fix stupid thinko in device discovery.

Should fix the 'cant find AGP VGA controller' warnings.
Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent 36cd36ee
......@@ -626,7 +626,7 @@ u32 agp_collect_device_status(struct agp_bridge_data *bridge, u32 requested_mode
u32 vga_agpstat;
while (!cap_ptr) {
device = pci_get_class(PCI_CLASS_DISPLAY_VGA, device);
device = pci_get_class(PCI_CLASS_DISPLAY_VGA << 8, device);
if (!device) {
printk (KERN_INFO PFX "Couldn't find an AGP VGA controller.\n");
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