Am Mittwoch, 3. August 2005 15:26 schrieben Sie:
> #include <hallo.h>
>
> * Gerald [Wed, Aug 03 2005, 09:40:34AM]:
> > Package: sl-modem-source
> > Version: 2.9.9a-1
> > Severity: important
>
> Please don't use obsolete versions.

2.9.9a-1 ist not obsolet, ist the version in stable (sarge)

>
> Maybe, but it's not distributable. Does 2.9.9d solve this problem?

No, I tried that on a sarge system, 2.9.9d does not solve the problem.

I found a patch for sl-modem 2.9.9 on
http://linmodems.technion.ac.il/archive-fifth/msg02217.html,
applied it, this works.

--- amrmo_init.c_orig   2005-05-24 15:37:16.000000000 +0300
+++ amrmo_init.c        2005-05-24 15:39:03.000000000 +0300
@@ -58,9 +58,6 @@
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
 #define OLD_KERNEL 1
 #endif
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10)
-#define pci_register_driver(drv) ( pci_register_driver(drv) ? 0 : -ENODEV )
-#endif
 
 #ifdef OLD_KERNEL
 #define iminor(i) MINOR((i)->i_rdev)
@@ -752,7 +749,11 @@
                return err;
        }
 #endif
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10)
+       if (!pci_register_driver(&amrmo_pci_driver)) {
+#else
        if ((err = pci_register_driver(&amrmo_pci_driver)) < 0) {
+#endif
                pci_unregister_driver(&amrmo_pci_driver);
 #ifndef OLD_KERNEL
                class_simple_destroy(amrmo_class);

Burkhard Lück

Reply via email to