]> err.no Git - linux-2.6/commitdiff
[AGPGART] Fix pci_register_driver checking in amd64-agp
authorDave Jones <davej@redhat.com>
Wed, 21 Jun 2006 21:36:24 +0000 (17:36 -0400)
committerDave Jones <davej@redhat.com>
Wed, 21 Jun 2006 21:36:24 +0000 (17:36 -0400)
pci_register_driver() never returns a positive number.

Signed-off-by: Dave Jones <davej@redhat.com>
drivers/char/agp/amd64-agp.c

index ac3c33a2e37d7b7ed7d1b3da0c7428f0e448dec8..e449d949f7ea7d3f4ddf1aed6b24bacc2595374e 100644 (file)
@@ -761,7 +761,7 @@ int __init agp_amd64_init(void)
 
        if (agp_off)
                return -EINVAL;
-       if (pci_register_driver(&agp_amd64_pci_driver) > 0) {
+       if (pci_register_driver(&agp_amd64_pci_driver) < 0) {
                struct pci_dev *dev;
                if (!agp_try_unsupported && !agp_try_unsupported_boot) {
                        printk(KERN_INFO PFX "No supported AGP bridge found.\n");