diff options
author | Julia Lawall <julia@diku.dk> | 2010-03-13 15:22:16 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-03-13 15:22:16 -0500 |
commit | 3f07d1295191cfa41125e4e61ee2064790070071 (patch) | |
tree | 38ead9913c279857105ce4dbebefc3427d44a008 /drivers/net | |
parent | a003460b21323ddb29479505d9555f0985b8b2f1 (diff) |
drivers/net/tg3.c: change the field used with the TG3_FLAG_10_100_ONLY constant
The constant TG3_FLAG_10_100_ONLY should be used with the tg3_flags field,
not the tg3_flags2 field, as done elsewhere in the same file.
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/tg3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index c3b4fe74cd6b..22cf1c446de3 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
@@ -9776,7 +9776,7 @@ static int tg3_set_settings(struct net_device *dev, struct ethtool_cmd *cmd) | |||
9776 | ADVERTISED_Pause | | 9776 | ADVERTISED_Pause | |
9777 | ADVERTISED_Asym_Pause; | 9777 | ADVERTISED_Asym_Pause; |
9778 | 9778 | ||
9779 | if (!(tp->tg3_flags2 & TG3_FLAG_10_100_ONLY)) | 9779 | if (!(tp->tg3_flags & TG3_FLAG_10_100_ONLY)) |
9780 | mask |= ADVERTISED_1000baseT_Half | | 9780 | mask |= ADVERTISED_1000baseT_Half | |
9781 | ADVERTISED_1000baseT_Full; | 9781 | ADVERTISED_1000baseT_Full; |
9782 | 9782 | ||