]> git.pld-linux.org Git - packages/r8168.git/blobdiff - linux-3.16.patch
- fix building with linux 3.16
[packages/r8168.git] / linux-3.16.patch
diff --git a/linux-3.16.patch b/linux-3.16.patch
new file mode 100644 (file)
index 0000000..6a23eee
--- /dev/null
@@ -0,0 +1,14 @@
+--- r8168-8.038.00/src/r8168_n.c~      2014-08-25 22:58:24.000000000 +0200
++++ r8168-8.038.00/src/r8168_n.c       2014-08-25 23:00:52.314799987 +0200
+@@ -17542,7 +17542,11 @@
+     RTL_NET_DEVICE_OPS(rtl8168_netdev_ops);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(3,16,0)
+     SET_ETHTOOL_OPS(dev, &rtl8168_ethtool_ops);
++#else
++    dev->ethtool_ops = &rtl8168_ethtool_ops;
++#endif
+     dev->watchdog_timeo = RTL8168_TX_TIMEOUT;
+     dev->irq = pdev->irq;
This page took 0.045167 seconds and 4 git commands to generate.