diff options
Diffstat (limited to 'drivers/net/atl1c/atl1c_ethtool.c')
-rw-r--r-- | drivers/net/atl1c/atl1c_ethtool.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/atl1c/atl1c_ethtool.c b/drivers/net/atl1c/atl1c_ethtool.c index 9b1e0eaebb5c..32339243d61f 100644 --- a/drivers/net/atl1c/atl1c_ethtool.c +++ b/drivers/net/atl1c/atl1c_ethtool.c | |||
@@ -22,6 +22,7 @@ | |||
22 | 22 | ||
23 | #include <linux/netdevice.h> | 23 | #include <linux/netdevice.h> |
24 | #include <linux/ethtool.h> | 24 | #include <linux/ethtool.h> |
25 | #include <linux/slab.h> | ||
25 | 26 | ||
26 | #include "atl1c.h" | 27 | #include "atl1c.h" |
27 | 28 | ||
@@ -37,7 +38,7 @@ static int atl1c_get_settings(struct net_device *netdev, | |||
37 | SUPPORTED_100baseT_Full | | 38 | SUPPORTED_100baseT_Full | |
38 | SUPPORTED_Autoneg | | 39 | SUPPORTED_Autoneg | |
39 | SUPPORTED_TP); | 40 | SUPPORTED_TP); |
40 | if (hw->ctrl_flags & ATL1C_LINK_CAP_1000M) | 41 | if (hw->link_cap_flags & ATL1C_LINK_CAP_1000M) |
41 | ecmd->supported |= SUPPORTED_1000baseT_Full; | 42 | ecmd->supported |= SUPPORTED_1000baseT_Full; |
42 | 43 | ||
43 | ecmd->advertising = ADVERTISED_TP; | 44 | ecmd->advertising = ADVERTISED_TP; |