summaryrefslogtreecommitdiffstats
path: root/abs/core/ceton_infinitv/kernel-4.7+.patch
blob: c47cef32ee4bc6687cca4dfdb6883061e4d0f229 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- ceton_infinitv_linux_driver/ctn91xx_net.c.orig	2017-04-06 18:56:02.072900758 +0000
+++ ceton_infinitv_linux_driver/ctn91xx_net.c	2017-04-06 18:59:01.536518743 +0000
@@ -228,7 +228,11 @@
         sdump_buffer( skb->data, skb->len, "tx");
 #endif
 
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,7,0)
+        netif_trans_update(ndev);
+#else
         ndev->trans_start = jiffies;
+#endif
         ctn91xx_write8( 1, msg_base, MSG_BUFFER_MSG_AVAIL );
 
     } else {