提交 4092e256 编写于 作者: D Dave Jones

[AGPGART] Fix pci_register_driver checking in amd64-agp

pci_register_driver() never returns a positive number.
Signed-off-by: NDave Jones <davej@redhat.com>
上级 b3818ed4
......@@ -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");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册