aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/stmmac
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/stmmac')
-rw-r--r--drivers/net/stmmac/dwmac100.c8
-rw-r--r--drivers/net/stmmac/dwmac1000_core.c6
-rw-r--r--drivers/net/stmmac/stmmac_main.c2
3 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/stmmac/dwmac100.c b/drivers/net/stmmac/dwmac100.c
index 4cacca614fc1..1ca84eab289c 100644
--- a/drivers/net/stmmac/dwmac100.c
+++ b/drivers/net/stmmac/dwmac100.c
@@ -139,7 +139,7 @@ static void dwmac100_dump_dma_regs(unsigned long ioaddr)
139{ 139{
140 int i; 140 int i;
141 141
142 DBG(KERN_DEBUG "DWMAC 100 DMA CSR \n"); 142 DBG(KERN_DEBUG "DWMAC 100 DMA CSR\n");
143 for (i = 0; i < 9; i++) 143 for (i = 0; i < 9; i++)
144 pr_debug("\t CSR%d (offset 0x%x): 0x%08x\n", i, 144 pr_debug("\t CSR%d (offset 0x%x): 0x%08x\n", i,
145 (DMA_BUS_MODE + i * 4), 145 (DMA_BUS_MODE + i * 4),
@@ -317,7 +317,7 @@ static void dwmac100_set_filter(struct net_device *dev)
317 MAC_CONTROL_HO | MAC_CONTROL_HP); 317 MAC_CONTROL_HO | MAC_CONTROL_HP);
318 } else { 318 } else {
319 u32 mc_filter[2]; 319 u32 mc_filter[2];
320 struct dev_mc_list *mclist; 320 struct netdev_hw_addr *ha;
321 321
322 /* Perfect filter mode for physical address and Hash 322 /* Perfect filter mode for physical address and Hash
323 filter for multicast */ 323 filter for multicast */
@@ -326,11 +326,11 @@ static void dwmac100_set_filter(struct net_device *dev)
326 MAC_CONTROL_IF | MAC_CONTROL_HO); 326 MAC_CONTROL_IF | MAC_CONTROL_HO);
327 327
328 memset(mc_filter, 0, sizeof(mc_filter)); 328 memset(mc_filter, 0, sizeof(mc_filter));
329 netdev_for_each_mc_addr(mclist, dev) { 329 netdev_for_each_mc_addr(ha, dev) {
330 /* The upper 6 bits of the calculated CRC are used to 330 /* The upper 6 bits of the calculated CRC are used to
331 * index the contens of the hash table */ 331 * index the contens of the hash table */
332 int bit_nr = 332 int bit_nr =
333 ether_crc(ETH_ALEN, mclist->dmi_addr) >> 26; 333 ether_crc(ETH_ALEN, ha->addr) >> 26;
334 /* The most significant bit determines the register to 334 /* The most significant bit determines the register to
335 * use (H/L) while the other 5 bits determine the bit 335 * use (H/L) while the other 5 bits determine the bit
336 * within the register. */ 336 * within the register. */
diff --git a/drivers/net/stmmac/dwmac1000_core.c b/drivers/net/stmmac/dwmac1000_core.c
index 5bd95ebfe498..f9c7c1cbda93 100644
--- a/drivers/net/stmmac/dwmac1000_core.c
+++ b/drivers/net/stmmac/dwmac1000_core.c
@@ -95,17 +95,17 @@ static void dwmac1000_set_filter(struct net_device *dev)
95 writel(0xffffffff, ioaddr + GMAC_HASH_LOW); 95 writel(0xffffffff, ioaddr + GMAC_HASH_LOW);
96 } else if (!netdev_mc_empty(dev)) { 96 } else if (!netdev_mc_empty(dev)) {
97 u32 mc_filter[2]; 97 u32 mc_filter[2];
98 struct dev_mc_list *mclist; 98 struct netdev_hw_addr *ha;
99 99
100 /* Hash filter for multicast */ 100 /* Hash filter for multicast */
101 value = GMAC_FRAME_FILTER_HMC; 101 value = GMAC_FRAME_FILTER_HMC;
102 102
103 memset(mc_filter, 0, sizeof(mc_filter)); 103 memset(mc_filter, 0, sizeof(mc_filter));
104 netdev_for_each_mc_addr(mclist, dev) { 104 netdev_for_each_mc_addr(ha, dev) {
105 /* The upper 6 bits of the calculated CRC are used to 105 /* The upper 6 bits of the calculated CRC are used to
106 index the contens of the hash table */ 106 index the contens of the hash table */
107 int bit_nr = 107 int bit_nr =
108 bitrev32(~crc32_le(~0, mclist->dmi_addr, 6)) >> 26; 108 bitrev32(~crc32_le(~0, ha->addr, 6)) >> 26;
109 /* The most significant bit determines the register to 109 /* The most significant bit determines the register to
110 * use (H/L) while the other 5 bits determine the bit 110 * use (H/L) while the other 5 bits determine the bit
111 * within the register. */ 111 * within the register. */
diff --git a/drivers/net/stmmac/stmmac_main.c b/drivers/net/stmmac/stmmac_main.c
index 4111a85ec80e..cc532ef28c8f 100644
--- a/drivers/net/stmmac/stmmac_main.c
+++ b/drivers/net/stmmac/stmmac_main.c
@@ -837,7 +837,7 @@ static int stmmac_open(struct net_device *dev)
837#ifdef CONFIG_STMMAC_TIMER 837#ifdef CONFIG_STMMAC_TIMER
838 priv->tm = kzalloc(sizeof(struct stmmac_timer *), GFP_KERNEL); 838 priv->tm = kzalloc(sizeof(struct stmmac_timer *), GFP_KERNEL);
839 if (unlikely(priv->tm == NULL)) { 839 if (unlikely(priv->tm == NULL)) {
840 pr_err("%s: ERROR: timer memory alloc failed \n", __func__); 840 pr_err("%s: ERROR: timer memory alloc failed\n", __func__);
841 return -ENOMEM; 841 return -ENOMEM;
842 } 842 }
843 priv->tm->freq = tmrate; 843 priv->tm->freq = tmrate;