forked from luck/tmp_suning_uos_patched
[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>
This commit is contained in:
parent
b3818ed446
commit
4092e256ca
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user