backports: remove usage of get_ts_info in cdc_ncm.c
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 8 Jun 2014 15:49:14 +0000 (17:49 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 16 Jun 2014 18:23:38 +0000 (20:23 +0200)
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
patches/collateral-evolutions/network/0017-get_ts_info/cdc_ncm.patch [new file with mode: 0644]

diff --git a/patches/collateral-evolutions/network/0017-get_ts_info/cdc_ncm.patch b/patches/collateral-evolutions/network/0017-get_ts_info/cdc_ncm.patch
new file mode 100644 (file)
index 0000000..14101f2
--- /dev/null
@@ -0,0 +1,12 @@
+--- a/drivers/net/usb/cdc_ncm.c
++++ b/drivers/net/usb/cdc_ncm.c
+@@ -137,7 +137,9 @@ static const struct ethtool_ops cdc_ncm_
+       .get_drvinfo       = usbnet_get_drvinfo,
+       .get_msglevel      = usbnet_get_msglevel,
+       .set_msglevel      = usbnet_set_msglevel,
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)
+       .get_ts_info       = ethtool_op_get_ts_info,
++#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0) */
+       .get_sset_count    = cdc_ncm_get_sset_count,
+       .get_strings       = cdc_ncm_get_strings,
+       .get_ethtool_stats = cdc_ncm_get_ethtool_stats,