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

[AGPGART] Fix silly logic bug in modular AMD64 GART driver.

We found a device, and then claimed we couldn't find one due to a
silly thinko.

agpgart: Detected AMD 8151 AGP Bridge rev B2
agpgart: Maximum main memory to use for agp memory: 816M
agpgart: AGP aperture is 64M @ 0xe0000000
No supported AGP bridge found.
You can try agp_try_unsupported=1
parent a0cad19d
......@@ -495,7 +495,7 @@ int __init agp_amd64_init(void)
int err = 0;
if (agp_off)
return -EINVAL;
if (pci_module_init(&agp_amd64_pci_driver) == 0) {
if (pci_module_init(&agp_amd64_pci_driver) > 0) {
struct pci_dev *dev;
if (!agp_try_unsupported && !agp_try_unsupported_boot) {
printk(KERN_INFO "No supported AGP bridge found.\n");
......
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