summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2008-11-02 10:26:37 +0000
committerAlin Năstac <mrness@gentoo.org>2008-11-02 10:26:37 +0000
commitd39eb61544c4e082453eccdc37268eeafd23ba45 (patch)
tree2da3e0dc972792a7cb1fcd4fd9829fc97aa3f910 /net-dialup/ltmodem/files
parentppc stable, bug #242696 (diff)
downloadgentoo-2-d39eb61544c4e082453eccdc37268eeafd23ba45.tar.gz
gentoo-2-d39eb61544c4e082453eccdc37268eeafd23ba45.tar.bz2
gentoo-2-d39eb61544c4e082453eccdc37268eeafd23ba45.zip
Fix compilation errors when build against kernel 2.6.27, thanks to Aleksandar Topuzovic (#244833).
(Portage version: 2.1.4.4)
Diffstat (limited to 'net-dialup/ltmodem/files')
-rw-r--r--net-dialup/ltmodem/files/ltmodem-2.6.9-kernel-2.6.24.patch15
-rw-r--r--net-dialup/ltmodem/files/ltmodem-2.6.9-kernel-2.6.27.patch39
2 files changed, 39 insertions, 15 deletions
diff --git a/net-dialup/ltmodem/files/ltmodem-2.6.9-kernel-2.6.24.patch b/net-dialup/ltmodem/files/ltmodem-2.6.9-kernel-2.6.24.patch
deleted file mode 100644
index b2d8f111a882..000000000000
--- a/net-dialup/ltmodem/files/ltmodem-2.6.9-kernel-2.6.24.patch
+++ /dev/null
@@ -1,15 +0,0 @@
-diff -Nru ltmodem-2.6-alk-9.orig/serial.c ltmodem-2.6-alk-9/serial.c
---- ltmodem-2.6-alk-9.orig/serial.c 2007-09-06 04:56:25.000000000 +0300
-+++ ltmodem-2.6-alk-9/serial.c 2008-02-13 17:21:44.000000000 +0200
-@@ -826,7 +826,11 @@
- *lt_modem_ops.virtual_isr_ptr = lt_virtual_rs_interrupt;
-
- /* lets try to grap dsp interrupt here */
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)
- ret = request_irq(lt_modem_res.Irq, VMODEM_Hw_Int_Proc, SA_INTERRUPT | SA_SHIRQ,
-+#else
-+ ret = request_irq(lt_modem_res.Irq, VMODEM_Hw_Int_Proc, IRQF_DISABLED | IRQF_SHARED,
-+#endif
- ltserialstring, &lt_modem_res.BaseAddress);
- if (ret<0)
- goto out_port;
diff --git a/net-dialup/ltmodem/files/ltmodem-2.6.9-kernel-2.6.27.patch b/net-dialup/ltmodem/files/ltmodem-2.6.9-kernel-2.6.27.patch
new file mode 100644
index 000000000000..d9e5cd23e27a
--- /dev/null
+++ b/net-dialup/ltmodem/files/ltmodem-2.6.9-kernel-2.6.27.patch
@@ -0,0 +1,39 @@
+diff -Nru ltmodem-2.6-alk-9.orig/serial.c ltmodem-2.6-alk-9/serial.c
+--- ltmodem-2.6-alk-9.orig/serial.c 2007-09-06 01:56:25.000000000 +0000
++++ ltmodem-2.6-alk-9/serial.c 2008-11-02 10:19:26.000000000 +0000
+@@ -362,7 +362,11 @@
+ receive_chars(&lt_port,&status,0);
+
+ {
++#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27))
+ struct tty_struct *tty = lt_port.port.info->tty;
++#else
++ struct tty_struct *tty = lt_port.port.info->port.tty;
++#endif
+ spin_unlock_irqrestore(&lt_port.port.lock, flags);
+ tty_flip_buffer_push(tty);
+ spin_lock_irqsave(&lt_port.port.lock,flags);
+@@ -568,7 +572,11 @@
+
+ // force low latency mode on tty.
+ // We will push data from buttom half, no need to delay it further.
++#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27))
+ port->info->tty->low_latency = 1;
++#else
++ port->info->port.tty->low_latency = 1;
++#endif
+
+ lt_modem_ops.PortOpen();
+
+@@ -826,7 +834,11 @@
+ *lt_modem_ops.virtual_isr_ptr = lt_virtual_rs_interrupt;
+
+ /* lets try to grap dsp interrupt here */
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)
+ ret = request_irq(lt_modem_res.Irq, VMODEM_Hw_Int_Proc, SA_INTERRUPT | SA_SHIRQ,
++#else
++ ret = request_irq(lt_modem_res.Irq, VMODEM_Hw_Int_Proc, IRQF_DISABLED | IRQF_SHARED,
++#endif
+ ltserialstring, &lt_modem_res.BaseAddress);
+ if (ret<0)
+ goto out_port;