diff options
Diffstat (limited to 'drivers/net/depca.c')
-rw-r--r-- | drivers/net/depca.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/drivers/net/depca.c b/drivers/net/depca.c index 744c1928dfca..bf66e9b3b19e 100644 --- a/drivers/net/depca.c +++ b/drivers/net/depca.c | |||
@@ -921,7 +921,7 @@ static void depca_tx_timeout(struct net_device *dev) | |||
921 | STOP_DEPCA; | 921 | STOP_DEPCA; |
922 | depca_init_ring(dev); | 922 | depca_init_ring(dev); |
923 | LoadCSRs(dev); | 923 | LoadCSRs(dev); |
924 | dev->trans_start = jiffies; | 924 | dev->trans_start = jiffies; /* prevent tx timeout */ |
925 | netif_wake_queue(dev); | 925 | netif_wake_queue(dev); |
926 | InitRestartDepca(dev); | 926 | InitRestartDepca(dev); |
927 | } | 927 | } |
@@ -954,7 +954,6 @@ static netdev_tx_t depca_start_xmit(struct sk_buff *skb, | |||
954 | outw(CSR0, DEPCA_ADDR); | 954 | outw(CSR0, DEPCA_ADDR); |
955 | outw(INEA | TDMD, DEPCA_DATA); | 955 | outw(INEA | TDMD, DEPCA_DATA); |
956 | 956 | ||
957 | dev->trans_start = jiffies; | ||
958 | dev_kfree_skb(skb); | 957 | dev_kfree_skb(skb); |
959 | } | 958 | } |
960 | if (TX_BUFFS_AVAIL) | 959 | if (TX_BUFFS_AVAIL) |
@@ -1204,8 +1203,6 @@ static void LoadCSRs(struct net_device *dev) | |||
1204 | outw(ACON, DEPCA_DATA); | 1203 | outw(ACON, DEPCA_DATA); |
1205 | 1204 | ||
1206 | outw(CSR0, DEPCA_ADDR); /* Point back to CSR0 */ | 1205 | outw(CSR0, DEPCA_ADDR); /* Point back to CSR0 */ |
1207 | |||
1208 | return; | ||
1209 | } | 1206 | } |
1210 | 1207 | ||
1211 | static int InitRestartDepca(struct net_device *dev) | 1208 | static int InitRestartDepca(struct net_device *dev) |
@@ -1272,7 +1269,7 @@ static void set_multicast_list(struct net_device *dev) | |||
1272 | static void SetMulticastFilter(struct net_device *dev) | 1269 | static void SetMulticastFilter(struct net_device *dev) |
1273 | { | 1270 | { |
1274 | struct depca_private *lp = netdev_priv(dev); | 1271 | struct depca_private *lp = netdev_priv(dev); |
1275 | struct dev_mc_list *dmi; | 1272 | struct netdev_hw_addr *ha; |
1276 | char *addrs; | 1273 | char *addrs; |
1277 | int i, j, bit, byte; | 1274 | int i, j, bit, byte; |
1278 | u16 hashcode; | 1275 | u16 hashcode; |
@@ -1287,8 +1284,8 @@ static void SetMulticastFilter(struct net_device *dev) | |||
1287 | lp->init_block.mcast_table[i] = 0; | 1284 | lp->init_block.mcast_table[i] = 0; |
1288 | } | 1285 | } |
1289 | /* Add multicast addresses */ | 1286 | /* Add multicast addresses */ |
1290 | netdev_for_each_mc_addr(dmi, dev) { | 1287 | netdev_for_each_mc_addr(ha, dev) { |
1291 | addrs = dmi->dmi_addr; | 1288 | addrs = ha->addr; |
1292 | if ((*addrs & 0x01) == 1) { /* multicast address? */ | 1289 | if ((*addrs & 0x01) == 1) { /* multicast address? */ |
1293 | crc = ether_crc(ETH_ALEN, addrs); | 1290 | crc = ether_crc(ETH_ALEN, addrs); |
1294 | hashcode = (crc & 1); /* hashcode is 6 LSb of CRC ... */ | 1291 | hashcode = (crc & 1); /* hashcode is 6 LSb of CRC ... */ |
@@ -1303,8 +1300,6 @@ static void SetMulticastFilter(struct net_device *dev) | |||
1303 | } | 1300 | } |
1304 | } | 1301 | } |
1305 | } | 1302 | } |
1306 | |||
1307 | return; | ||
1308 | } | 1303 | } |
1309 | 1304 | ||
1310 | static int __init depca_common_init (u_long ioaddr, struct net_device **devp) | 1305 | static int __init depca_common_init (u_long ioaddr, struct net_device **devp) |
@@ -1909,8 +1904,6 @@ static void depca_dbg_open(struct net_device *dev) | |||
1909 | outw(CSR3, DEPCA_ADDR); | 1904 | outw(CSR3, DEPCA_ADDR); |
1910 | printk("CSR3: 0x%4.4x\n", inw(DEPCA_DATA)); | 1905 | printk("CSR3: 0x%4.4x\n", inw(DEPCA_DATA)); |
1911 | } | 1906 | } |
1912 | |||
1913 | return; | ||
1914 | } | 1907 | } |
1915 | 1908 | ||
1916 | /* | 1909 | /* |