summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2004-12-29 22:38:21 +0000
committerAlin Năstac <mrness@gentoo.org>2004-12-29 22:38:21 +0000
commitbe0df23c91eb9998692f5ef08c737f6024f56787 (patch)
tree39bc5a3a146a221e239703ff65cc9521930b53b0 /net-dialup/slmodem/files
parentStable on alpha, requested by ka0ttic. (diff)
downloadhistorical-be0df23c91eb9998692f5ef08c737f6024f56787.tar.gz
historical-be0df23c91eb9998692f5ef08c737f6024f56787.tar.bz2
historical-be0df23c91eb9998692f5ef08c737f6024f56787.zip
don't block installation for kernels >= 2.6.10 but don't install slamr module (#75656)
Diffstat (limited to 'net-dialup/slmodem/files')
-rw-r--r--net-dialup/slmodem/files/slmodem-2.9.10-fix-for-2.6.10.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/net-dialup/slmodem/files/slmodem-2.9.10-fix-for-2.6.10.patch b/net-dialup/slmodem/files/slmodem-2.9.10-fix-for-2.6.10.patch
new file mode 100644
index 000000000000..d2035b6d2fef
--- /dev/null
+++ b/net-dialup/slmodem/files/slmodem-2.9.10-fix-for-2.6.10.patch
@@ -0,0 +1,15 @@
+From Linux 2.6.10 onwards, pci_register_driver returns 0 on success and negative on failure
+
+- Daniel Drake <dsd@gentoo.org>
+
+--- slmodem-2.9.10/drivers/amrmo_init.c.orig 2004-12-25 23:53:51.345258848 +0000
++++ slmodem-2.9.10/drivers/amrmo_init.c 2004-12-25 23:54:33.528845968 +0000
+@@ -740,7 +740,7 @@
+ }
+ #endif
+
+- if (!pci_register_driver(&amrmo_pci_driver)) {
++ if (pci_register_driver(&amrmo_pci_driver) < 0) {
+ pci_unregister_driver(&amrmo_pci_driver);
+ #ifndef OLD_KERNEL
+ class_simple_destroy(amrmo_class);