Bug 148524 - Add 2.6.18 kernel support to net-dialup/ltmodem
Bug#: 148524 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: net-dialup@gentoo.org Reported By: lxnay@lxnaydesign.net
Component: Applications
URL:  http://svn.sabayonlinux.org/listing.php?repname=SL+Overlay&path=%2Fnet-dialup%2Fltmodem%2F#_net-dialup_ltmodem_
Summary: Add 2.6.18 kernel support to net-dialup/ltmodem
Keywords:  
Status Whiteboard: 
Opened: 2006-09-21 08:51 0000
Description:   Opened: 2006-09-21 08:51 0000
It's in the SabayonLinux SVN, added 2.6.18-devfs.patch

--- serial.c~  2005-12-12 02:07:17.000000000 +0100
+++ serial.c   2006-07-07 11:52:49.000000000 +0200
@@ -729,10 +729,8 @@
       .owner                  = THIS_MODULE,
       .driver_name         = "ltserial",
 #ifdef LT_USE_OLD_NAMES
-      .devfs_name   = "tts/LT",
       .dev_name       = "ttyLT",
 #else
-      .devfs_name   = "tts/LTM",
       .dev_name       = "ttyLTM",
 #endif
       .major                  = 62,

------- Comment #1 From Alin Năstac 2006-09-21 12:09:57 0000 -------
I've fixed with a better patch:
diff -Nru ltmodem-2.6-alk-8.orig/serial.c ltmodem-2.6-alk-8/serial.c
--- ltmodem-2.6-alk-8.orig/serial.c     2005-12-12 03:07:17.000000000 +0200
+++ ltmodem-2.6-alk-8/serial.c  2006-09-21 21:53:08.055717500 +0300
@@ -732,7 +732,9 @@
        .devfs_name             = "tts/LT",
        .dev_name               = "ttyLT",
 #else
+#      if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18))
        .devfs_name             = "tts/LTM",
+#      endif
        .dev_name               = "ttyLTM",
 #endif
        .major                  = 62,

This and the old module_param patch have been merged into kernel-changes.patch.

Fixed without revision bump (users rebuild the external modules anyway).

------- Comment #2 From Fabio Erculiani 2006-09-21 14:28:46 0000 -------
very good :) well done.