summaryrefslogtreecommitdiff
path: root/patches/collateral-evolutions/network/54-get_ts_info/drivers_net_usb_usbnet.patch
blob: 5e2cfaafdba1597438e12197dd21109e1040c467 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/drivers/net/usb/usbnet.c
+++ b/drivers/net/usb/usbnet.c
@@ -1026,7 +1026,9 @@ static const struct ethtool_ops usbnet_e
 	.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
 };
 
 /*-------------------------------------------------------------------------*/