summaryrefslogtreecommitdiff
blob: 1c5ee555d3e179d630c3678432778ad4e86decdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
diff -Nru ltmodem-2.6-alk-8.orig/lt_modem.c ltmodem-2.6-alk-8/lt_modem.c
--- ltmodem-2.6-alk-8.orig/lt_modem.c	2005-12-12 03:18:55.000000000 +0200
+++ ltmodem-2.6-alk-8/lt_modem.c	2006-04-19 21:43:32.142640500 +0300
@@ -120,14 +120,14 @@
 static int vendor_id = 0;
 static int device_id = 0;
 
-MODULE_PARM(vendor_id, "i");
+module_param(vendor_id, int, 0);
 MODULE_PARM_DESC(vendor_id, "Vendor ID of the Lucent Modem e.g. vendor_id=0x11c1");
-MODULE_PARM(device_id, "i");
+module_param(device_id, int, 0);
 MODULE_PARM_DESC(device_id, "Device ID of the Lucent Modem e.g. device_id=0x0440");
 
 static int Forced[4] = {-1,-1,-1,0};
 
-MODULE_PARM(Forced, "4i");
+module_param_array(Forced, int, NULL, 0);
 MODULE_PARM_DESC(Forced, "Forced Irq,BaseAddress,ComAddress[,NoDetect] of the Lucent Modem e.g. Forced=3,0x130,0x2f8");
 
 static
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
@@ -99,7 +99,7 @@
 */
 
 #include <linux/version.h>
-#include <linux/config.h>
+#include <linux/autoconf.h>
 #include <linux/module.h>
 #include <linux/tty.h>
 #include <linux/ioport.h>
@@ -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,