From 06c4c951bcb7d584dba92d3e7762ff93505cd912 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sun, 8 Jun 2014 17:49:14 +0200 Subject: [PATCH] backports: remove usage of get_ts_info in cdc_ncm.c Signed-off-by: Hauke Mehrtens --- .../network/0017-get_ts_info/cdc_ncm.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 patches/collateral-evolutions/network/0017-get_ts_info/cdc_ncm.patch 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 index 000000000000..14101f21be42 --- /dev/null +++ b/patches/collateral-evolutions/network/0017-get_ts_info/cdc_ncm.patch @@ -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, -- 2.30.2