From f49f70f333057e36cf969c4417e4eed6fe360e06 Mon Sep 17 00:00:00 2001 From: Dave Jones Date: Sat, 13 Sep 2003 19:54:03 +0100 Subject: [PATCH] [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 --- drivers/char/agp/amd64-agp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/agp/amd64-agp.c b/drivers/char/agp/amd64-agp.c index f60cb63720d87..90fe501281c73 100644 --- a/drivers/char/agp/amd64-agp.c +++ b/drivers/char/agp/amd64-agp.c @@ -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"); -- 2.53.0