diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2010-05-22 02:36:56 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-05-22 02:36:56 -0400 |
commit | cf9b59e9d3e008591d1f54830f570982bb307a0d (patch) | |
tree | 113478ce8fd8c832ba726ffdf59b82cb46356476 /drivers/net/sunhme.c | |
parent | 44504b2bebf8b5823c59484e73096a7d6574471d (diff) | |
parent | f4b87dee923342505e1ddba8d34ce9de33e75050 (diff) |
Merge remote branch 'origin' into secretlab/next-devicetree
Merging in current state of Linus' tree to deal with merge conflicts and
build failures in vio.c after merge.
Conflicts:
drivers/i2c/busses/i2c-cpm.c
drivers/i2c/busses/i2c-mpc.c
drivers/net/gianfar.c
Also fixed up one line in arch/powerpc/kernel/vio.c to use the
correct node pointer.
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/net/sunhme.c')
-rw-r--r-- | drivers/net/sunhme.c | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/drivers/net/sunhme.c b/drivers/net/sunhme.c index ad2cfc5bb9e1..3d9650b8d38f 100644 --- a/drivers/net/sunhme.c +++ b/drivers/net/sunhme.c | |||
@@ -855,7 +855,7 @@ static void happy_meal_timer(unsigned long data) | |||
855 | hp->timer_ticks = 0; | 855 | hp->timer_ticks = 0; |
856 | hp->timer_state = asleep; /* foo on you */ | 856 | hp->timer_state = asleep; /* foo on you */ |
857 | break; | 857 | break; |
858 | }; | 858 | } |
859 | 859 | ||
860 | if (restart_timer) { | 860 | if (restart_timer) { |
861 | hp->happy_timer.expires = jiffies + ((12 * HZ)/10); /* 1.2 sec. */ | 861 | hp->happy_timer.expires = jiffies + ((12 * HZ)/10); /* 1.2 sec. */ |
@@ -1488,7 +1488,7 @@ static int happy_meal_init(struct happy_meal *hp) | |||
1488 | HMD(("external, disable MII, ")); | 1488 | HMD(("external, disable MII, ")); |
1489 | hme_write32(hp, bregs + BMAC_XIFCFG, BIGMAC_XCFG_MIIDISAB); | 1489 | hme_write32(hp, bregs + BMAC_XIFCFG, BIGMAC_XCFG_MIIDISAB); |
1490 | break; | 1490 | break; |
1491 | }; | 1491 | } |
1492 | 1492 | ||
1493 | if (happy_meal_tcvr_reset(hp, tregs)) | 1493 | if (happy_meal_tcvr_reset(hp, tregs)) |
1494 | return -EAGAIN; | 1494 | return -EAGAIN; |
@@ -1523,13 +1523,13 @@ static int happy_meal_init(struct happy_meal *hp) | |||
1523 | hme_write32(hp, bregs + BMAC_HTABLE3, 0xffff); | 1523 | hme_write32(hp, bregs + BMAC_HTABLE3, 0xffff); |
1524 | } else if ((hp->dev->flags & IFF_PROMISC) == 0) { | 1524 | } else if ((hp->dev->flags & IFF_PROMISC) == 0) { |
1525 | u16 hash_table[4]; | 1525 | u16 hash_table[4]; |
1526 | struct dev_mc_list *dmi; | 1526 | struct netdev_hw_addr *ha; |
1527 | char *addrs; | 1527 | char *addrs; |
1528 | u32 crc; | 1528 | u32 crc; |
1529 | 1529 | ||
1530 | memset(hash_table, 0, sizeof(hash_table)); | 1530 | memset(hash_table, 0, sizeof(hash_table)); |
1531 | netdev_for_each_mc_addr(dmi, hp->dev) { | 1531 | netdev_for_each_mc_addr(ha, hp->dev) { |
1532 | addrs = dmi->dmi_addr; | 1532 | addrs = ha->addr; |
1533 | 1533 | ||
1534 | if (!(*addrs & 1)) | 1534 | if (!(*addrs & 1)) |
1535 | continue; | 1535 | continue; |
@@ -1734,7 +1734,7 @@ static void happy_meal_set_initial_advertisement(struct happy_meal *hp) | |||
1734 | case external: | 1734 | case external: |
1735 | hme_write32(hp, bregs + BMAC_XIFCFG, BIGMAC_XCFG_MIIDISAB); | 1735 | hme_write32(hp, bregs + BMAC_XIFCFG, BIGMAC_XCFG_MIIDISAB); |
1736 | break; | 1736 | break; |
1737 | }; | 1737 | } |
1738 | if (happy_meal_tcvr_reset(hp, tregs)) | 1738 | if (happy_meal_tcvr_reset(hp, tregs)) |
1739 | return; | 1739 | return; |
1740 | 1740 | ||
@@ -2341,8 +2341,6 @@ static netdev_tx_t happy_meal_start_xmit(struct sk_buff *skb, | |||
2341 | 2341 | ||
2342 | spin_unlock_irq(&hp->happy_lock); | 2342 | spin_unlock_irq(&hp->happy_lock); |
2343 | 2343 | ||
2344 | dev->trans_start = jiffies; | ||
2345 | |||
2346 | tx_add_log(hp, TXLOG_ACTION_TXMIT, 0); | 2344 | tx_add_log(hp, TXLOG_ACTION_TXMIT, 0); |
2347 | return NETDEV_TX_OK; | 2345 | return NETDEV_TX_OK; |
2348 | } | 2346 | } |
@@ -2362,7 +2360,7 @@ static void happy_meal_set_multicast(struct net_device *dev) | |||
2362 | { | 2360 | { |
2363 | struct happy_meal *hp = netdev_priv(dev); | 2361 | struct happy_meal *hp = netdev_priv(dev); |
2364 | void __iomem *bregs = hp->bigmacregs; | 2362 | void __iomem *bregs = hp->bigmacregs; |
2365 | struct dev_mc_list *dmi; | 2363 | struct netdev_hw_addr *ha; |
2366 | char *addrs; | 2364 | char *addrs; |
2367 | u32 crc; | 2365 | u32 crc; |
2368 | 2366 | ||
@@ -2380,8 +2378,8 @@ static void happy_meal_set_multicast(struct net_device *dev) | |||
2380 | u16 hash_table[4]; | 2378 | u16 hash_table[4]; |
2381 | 2379 | ||
2382 | memset(hash_table, 0, sizeof(hash_table)); | 2380 | memset(hash_table, 0, sizeof(hash_table)); |
2383 | netdev_for_each_mc_addr(dmi, dev) { | 2381 | netdev_for_each_mc_addr(ha, dev) { |
2384 | addrs = dmi->dmi_addr; | 2382 | addrs = ha->addr; |
2385 | 2383 | ||
2386 | if (!(*addrs & 1)) | 2384 | if (!(*addrs & 1)) |
2387 | continue; | 2385 | continue; |
@@ -2945,7 +2943,6 @@ static void get_hme_mac_nonsparc(struct pci_dev *pdev, unsigned char *dev_addr) | |||
2945 | dev_addr[1] = 0x00; | 2943 | dev_addr[1] = 0x00; |
2946 | dev_addr[2] = 0x20; | 2944 | dev_addr[2] = 0x20; |
2947 | get_random_bytes(&dev_addr[3], 3); | 2945 | get_random_bytes(&dev_addr[3], 3); |
2948 | return; | ||
2949 | } | 2946 | } |
2950 | #endif /* !(CONFIG_SPARC) */ | 2947 | #endif /* !(CONFIG_SPARC) */ |
2951 | 2948 | ||
@@ -3004,7 +3001,6 @@ static int __devinit happy_meal_pci_probe(struct pci_dev *pdev, | |||
3004 | dev->base_addr = (long) pdev; | 3001 | dev->base_addr = (long) pdev; |
3005 | 3002 | ||
3006 | hp = netdev_priv(dev); | 3003 | hp = netdev_priv(dev); |
3007 | memset(hp, 0, sizeof(*hp)); | ||
3008 | 3004 | ||
3009 | hp->happy_dev = pdev; | 3005 | hp->happy_dev = pdev; |
3010 | hp->dma_dev = &pdev->dev; | 3006 | hp->dma_dev = &pdev->dev; |