Skip to content

Commit

Permalink
[AGPGART] Fix pci_register_driver checking in amd64-agp
Browse files Browse the repository at this point in the history
pci_register_driver() never returns a positive number.

Signed-off-by: Dave Jones <davej@redhat.com>
  • Loading branch information
Dave Jones committed Jun 21, 2006
1 parent b3818ed commit 4092e25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/agp/amd64-agp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 4092e25

Please sign in to comment.