diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /drivers/net/enc28j60.c | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'drivers/net/enc28j60.c')
-rw-r--r-- | drivers/net/enc28j60.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/enc28j60.c b/drivers/net/enc28j60.c index 112c5aa9af7f..2837ce209cd7 100644 --- a/drivers/net/enc28j60.c +++ b/drivers/net/enc28j60.c | |||
@@ -812,7 +812,7 @@ static void enc28j60_read_tsv(struct enc28j60_net *priv, u8 tsv[TSV_SIZE]) | |||
812 | if (netif_msg_hw(priv)) | 812 | if (netif_msg_hw(priv)) |
813 | printk(KERN_DEBUG DRV_NAME ": reading TSV at addr:0x%04x\n", | 813 | printk(KERN_DEBUG DRV_NAME ": reading TSV at addr:0x%04x\n", |
814 | endptr + 1); | 814 | endptr + 1); |
815 | enc28j60_mem_read(priv, endptr + 1, sizeof(tsv), tsv); | 815 | enc28j60_mem_read(priv, endptr + 1, TSV_SIZE, tsv); |
816 | } | 816 | } |
817 | 817 | ||
818 | static void enc28j60_dump_tsv(struct enc28j60_net *priv, const char *msg, | 818 | static void enc28j60_dump_tsv(struct enc28j60_net *priv, const char *msg, |
@@ -1488,7 +1488,7 @@ enc28j60_get_settings(struct net_device *dev, struct ethtool_cmd *cmd) | |||
1488 | cmd->supported = SUPPORTED_10baseT_Half | 1488 | cmd->supported = SUPPORTED_10baseT_Half |
1489 | | SUPPORTED_10baseT_Full | 1489 | | SUPPORTED_10baseT_Full |
1490 | | SUPPORTED_TP; | 1490 | | SUPPORTED_TP; |
1491 | cmd->speed = SPEED_10; | 1491 | ethtool_cmd_speed_set(cmd, SPEED_10); |
1492 | cmd->duplex = priv->full_duplex ? DUPLEX_FULL : DUPLEX_HALF; | 1492 | cmd->duplex = priv->full_duplex ? DUPLEX_FULL : DUPLEX_HALF; |
1493 | cmd->port = PORT_TP; | 1493 | cmd->port = PORT_TP; |
1494 | cmd->autoneg = AUTONEG_DISABLE; | 1494 | cmd->autoneg = AUTONEG_DISABLE; |
@@ -1499,7 +1499,8 @@ enc28j60_get_settings(struct net_device *dev, struct ethtool_cmd *cmd) | |||
1499 | static int | 1499 | static int |
1500 | enc28j60_set_settings(struct net_device *dev, struct ethtool_cmd *cmd) | 1500 | enc28j60_set_settings(struct net_device *dev, struct ethtool_cmd *cmd) |
1501 | { | 1501 | { |
1502 | return enc28j60_setlink(dev, cmd->autoneg, cmd->speed, cmd->duplex); | 1502 | return enc28j60_setlink(dev, cmd->autoneg, |
1503 | ethtool_cmd_speed(cmd), cmd->duplex); | ||
1503 | } | 1504 | } |
1504 | 1505 | ||
1505 | static u32 enc28j60_get_msglevel(struct net_device *dev) | 1506 | static u32 enc28j60_get_msglevel(struct net_device *dev) |