]> rtime.felk.cvut.cz Git - linux-lin.git/commitdiff
sllin: Minor fixes to properly compile on 3.5 linux kernel
authorRostislav Lisovy <lisovy@gmail.com>
Thu, 2 Aug 2012 14:06:18 +0000 (16:06 +0200)
committerRostislav Lisovy <lisovy@gmail.com>
Thu, 2 Aug 2012 14:06:18 +0000 (16:06 +0200)
sllin/sllin.c

index dc308845e23f4e3e5fffe0782a9933aa875edec6..45b98ea8fd1e8137c19efc78b6910a0373cad6b0 100644 (file)
@@ -46,7 +46,6 @@
 #include <linux/module.h>
 #include <linux/moduleparam.h>
 
-#include <asm/system.h>
 #include <linux/uaccess.h>
 #include <linux/bitops.h>
 #include <linux/string.h>
@@ -80,7 +79,7 @@ MODULE_AUTHOR("Pavel Pisa <pisa@cmp.felk.cvut.cz>");
 #define SLLIN_MAGIC            0x53CA
 /* #define BREAK_BY_BAUD */
 
-static int master = true;
+static bool master = true;
 static int baudrate; /* Use LIN_DEFAULT_BAUDRATE when not set */
 
 module_param(master, bool, 0);
@@ -445,7 +444,7 @@ static void sll_setup(struct net_device *dev)
 
        /* New-style flags. */
        dev->flags              = IFF_NOARP;
-       dev->features           = NETIF_F_NO_CSUM;
+       dev->features           = NETIF_F_HW_CSUM; /* NETIF_F_NO_CSUM;*/
 }
 
 /******************************************