diff options
Diffstat (limited to 'patches/0040-ethtool_cmd_mdix/ethtool_cmd_mdix.cocci')
-rw-r--r-- | patches/0040-ethtool_cmd_mdix/ethtool_cmd_mdix.cocci | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/patches/0040-ethtool_cmd_mdix/ethtool_cmd_mdix.cocci b/patches/0040-ethtool_cmd_mdix/ethtool_cmd_mdix.cocci index b32973bf..479821e5 100644 --- a/patches/0040-ethtool_cmd_mdix/ethtool_cmd_mdix.cocci +++ b/patches/0040-ethtool_cmd_mdix/ethtool_cmd_mdix.cocci @@ -2,13 +2,13 @@ expression E1; struct ethtool_cmd *ecmd; @@ -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0) ++#if LINUX_VERSION_IS_GEQ(3,7,0) ecmd->eth_tp_mdix_ctrl = E1; -+#endif /* if LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0) */ ++#endif /* if LINUX_VERSION_IS_GEQ(3,7,0) */ @r2@ struct ethtool_cmd *ecmd; @@ -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0) ++#if LINUX_VERSION_IS_GEQ(3,7,0) if (ecmd->eth_tp_mdix_ctrl) {...} -+#endif /* if LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0) */ ++#endif /* if LINUX_VERSION_IS_GEQ(3,7,0) */ |