diff options
author | Dave Jones <davej@redhat.com> | 2006-06-21 17:36:24 -0400 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2006-06-21 17:36:24 -0400 |
commit | 4092e256ca35e62b431ebad4e0c42c6360acee08 (patch) | |
tree | c74cfb2d1b72fecb75be031e177c3477f65a1c58 /drivers/char/agp | |
parent | b3818ed446fc41db41b5a38d934ac2b69fd2e0aa (diff) |
[AGPGART] Fix pci_register_driver checking in amd64-agp
pci_register_driver() never returns a positive number.
Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'drivers/char/agp')
-rw-r--r-- | drivers/char/agp/amd64-agp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/agp/amd64-agp.c b/drivers/char/agp/amd64-agp.c index ac3c33a2e37d..e449d949f7ea 100644 --- a/drivers/char/agp/amd64-agp.c +++ b/drivers/char/agp/amd64-agp.c | |||
@@ -761,7 +761,7 @@ int __init agp_amd64_init(void) | |||
761 | 761 | ||
762 | if (agp_off) | 762 | if (agp_off) |
763 | return -EINVAL; | 763 | return -EINVAL; |
764 | if (pci_register_driver(&agp_amd64_pci_driver) > 0) { | 764 | if (pci_register_driver(&agp_amd64_pci_driver) < 0) { |
765 | struct pci_dev *dev; | 765 | struct pci_dev *dev; |
766 | if (!agp_try_unsupported && !agp_try_unsupported_boot) { | 766 | if (!agp_try_unsupported && !agp_try_unsupported_boot) { |
767 | printk(KERN_INFO PFX "No supported AGP bridge found.\n"); | 767 | printk(KERN_INFO PFX "No supported AGP bridge found.\n"); |