projects
/
platform
/
kernel
/
linux-arm64.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3818ed
)
[AGPGART] Fix pci_register_driver checking in amd64-agp
author
Dave Jones
<davej@redhat.com>
Wed, 21 Jun 2006 21:36:24 +0000
(17:36 -0400)
committer
Dave 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
patch
|
blob
|
history
diff --git
a/drivers/char/agp/amd64-agp.c
b/drivers/char/agp/amd64-agp.c
index
ac3c33a
..
e449d94
100644
(file)
--- a/
drivers/char/agp/amd64-agp.c
+++ b/
drivers/char/agp/amd64-agp.c
@@
-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");