]> rtime.felk.cvut.cz Git - socketcan-devel.git/commitdiff
Changed the LINUX_VERSION_CODE conditions to use the trunk/kv script from Urs
authorhartkopp <hartkopp@030b6a49-0b11-0410-94ab-b0dab22257f2>
Mon, 5 Mar 2007 15:25:35 +0000 (15:25 +0000)
committerhartkopp <hartkopp@030b6a49-0b11-0410-94ab-b0dab22257f2>
Mon, 5 Mar 2007 15:25:35 +0000 (15:25 +0000)
for an automated Kernel patch generation.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@171 030b6a49-0b11-0410-94ab-b0dab22257f2

kernel/2.6/drivers/net/can/slcan.c

index 5d2f08f1834b597b4a79bf5ed93f7f4f1e66e72e..65247b6ae3b78b4321c44b92c97f5fff0b945459 100644 (file)
@@ -500,7 +500,8 @@ static void slc_setup(struct net_device *dev)
  * Routines looking at TTY side.
  ******************************************/
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,16)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
+#else
 static int slcan_receive_room(struct tty_struct *tty)
 {
        return 65536;  /* We can handle an infinite amount of data. :-) */
@@ -707,7 +708,8 @@ static int slcan_open(struct tty_struct *tty)
        sl->line = tty_devnum(tty);
        sl->pid = current->pid;
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,16)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
+#else
        /* FIXME: already done before we were called - seems this can go */
        if (tty->driver->flush_buffer)
                tty->driver->flush_buffer(tty);
@@ -825,7 +827,8 @@ static struct tty_ldisc     slc_ldisc = {
        .close          = slcan_close,
        .ioctl          = slcan_ioctl,
        .receive_buf    = slcan_receive_buf,
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,16)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
+#else
        .receive_room   = slcan_receive_room,
 #endif
        .write_wakeup   = slcan_write_wakeup,