diff options
author | Len Brown <len.brown@intel.com> | 2009-01-09 03:39:43 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-01-09 03:39:43 -0500 |
commit | b2576e1d4408e134e2188c967b1f28af39cd79d4 (patch) | |
tree | 004f3c82faab760f304ce031d6d2f572e7746a50 /drivers/net/cs89x0.c | |
parent | 3cc8a5f4ba91f67bbdb81a43a99281a26aab8d77 (diff) | |
parent | 2150edc6c5cf00f7adb54538b9ea2a3e9cedca3f (diff) |
Merge branch 'linus' into release
Diffstat (limited to 'drivers/net/cs89x0.c')
-rw-r--r-- | drivers/net/cs89x0.c | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/drivers/net/cs89x0.c b/drivers/net/cs89x0.c index 7107620f615d..ff6497658a45 100644 --- a/drivers/net/cs89x0.c +++ b/drivers/net/cs89x0.c | |||
@@ -170,11 +170,7 @@ static char version[] __initdata = | |||
170 | /* The cs8900 has 4 IRQ pins, software selectable. cs8900_irq_map maps | 170 | /* The cs8900 has 4 IRQ pins, software selectable. cs8900_irq_map maps |
171 | them to system IRQ numbers. This mapping is card specific and is set to | 171 | them to system IRQ numbers. This mapping is card specific and is set to |
172 | the configuration of the Cirrus Eval board for this chip. */ | 172 | the configuration of the Cirrus Eval board for this chip. */ |
173 | #ifdef CONFIG_ARCH_CLPS7500 | 173 | #if defined(CONFIG_SH_HICOSH4) |
174 | static unsigned int netcard_portlist[] __used __initdata = | ||
175 | { 0x80090303, 0x300, 0x320, 0x340, 0x360, 0x200, 0x220, 0x240, 0x260, 0x280, 0x2a0, 0x2c0, 0x2e0, 0}; | ||
176 | static unsigned int cs8900_irq_map[] = {12,0,0,0}; | ||
177 | #elif defined(CONFIG_SH_HICOSH4) | ||
178 | static unsigned int netcard_portlist[] __used __initdata = | 174 | static unsigned int netcard_portlist[] __used __initdata = |
179 | { 0x0300, 0}; | 175 | { 0x0300, 0}; |
180 | static unsigned int cs8900_irq_map[] = {1,0,0,0}; | 176 | static unsigned int cs8900_irq_map[] = {1,0,0,0}; |
@@ -521,7 +517,6 @@ cs89x0_probe1(struct net_device *dev, int ioaddr, int modular) | |||
521 | unsigned rev_type = 0; | 517 | unsigned rev_type = 0; |
522 | int eeprom_buff[CHKSUM_LEN]; | 518 | int eeprom_buff[CHKSUM_LEN]; |
523 | int retval; | 519 | int retval; |
524 | DECLARE_MAC_BUF(mac); | ||
525 | 520 | ||
526 | /* Initialize the device structure. */ | 521 | /* Initialize the device structure. */ |
527 | if (!modular) { | 522 | if (!modular) { |
@@ -846,7 +841,7 @@ cs89x0_probe1(struct net_device *dev, int ioaddr, int modular) | |||
846 | } | 841 | } |
847 | 842 | ||
848 | /* print the ethernet address. */ | 843 | /* print the ethernet address. */ |
849 | printk(", MAC %s", print_mac(mac, dev->dev_addr)); | 844 | printk(", MAC %pM", dev->dev_addr); |
850 | 845 | ||
851 | dev->open = net_open; | 846 | dev->open = net_open; |
852 | dev->stop = net_close; | 847 | dev->stop = net_close; |
@@ -1025,14 +1020,13 @@ skip_this_frame: | |||
1025 | } | 1020 | } |
1026 | skb->protocol=eth_type_trans(skb,dev); | 1021 | skb->protocol=eth_type_trans(skb,dev); |
1027 | netif_rx(skb); | 1022 | netif_rx(skb); |
1028 | dev->last_rx = jiffies; | ||
1029 | lp->stats.rx_packets++; | 1023 | lp->stats.rx_packets++; |
1030 | lp->stats.rx_bytes += length; | 1024 | lp->stats.rx_bytes += length; |
1031 | } | 1025 | } |
1032 | 1026 | ||
1033 | #endif /* ALLOW_DMA */ | 1027 | #endif /* ALLOW_DMA */ |
1034 | 1028 | ||
1035 | void __init reset_chip(struct net_device *dev) | 1029 | static void __init reset_chip(struct net_device *dev) |
1036 | { | 1030 | { |
1037 | #if !defined(CONFIG_MACH_MX31ADS) | 1031 | #if !defined(CONFIG_MACH_MX31ADS) |
1038 | #if !defined(CONFIG_MACH_IXDP2351) && !defined(CONFIG_ARCH_IXDP2X01) | 1032 | #if !defined(CONFIG_MACH_IXDP2351) && !defined(CONFIG_ARCH_IXDP2X01) |
@@ -1719,7 +1713,6 @@ net_rx(struct net_device *dev) | |||
1719 | 1713 | ||
1720 | skb->protocol=eth_type_trans(skb,dev); | 1714 | skb->protocol=eth_type_trans(skb,dev); |
1721 | netif_rx(skb); | 1715 | netif_rx(skb); |
1722 | dev->last_rx = jiffies; | ||
1723 | lp->stats.rx_packets++; | 1716 | lp->stats.rx_packets++; |
1724 | lp->stats.rx_bytes += length; | 1717 | lp->stats.rx_bytes += length; |
1725 | } | 1718 | } |
@@ -1817,11 +1810,10 @@ static int set_mac_address(struct net_device *dev, void *p) | |||
1817 | 1810 | ||
1818 | memcpy(dev->dev_addr, addr->sa_data, dev->addr_len); | 1811 | memcpy(dev->dev_addr, addr->sa_data, dev->addr_len); |
1819 | 1812 | ||
1820 | if (net_debug) { | 1813 | if (net_debug) |
1821 | DECLARE_MAC_BUF(mac); | 1814 | printk("%s: Setting MAC address to %pM.\n", |
1822 | printk("%s: Setting MAC address to %s.\n", | 1815 | dev->name, dev->dev_addr); |
1823 | dev->name, print_mac(mac, dev->dev_addr)); | 1816 | |
1824 | } | ||
1825 | /* set the Ethernet address */ | 1817 | /* set the Ethernet address */ |
1826 | for (i=0; i < ETH_ALEN/2; i++) | 1818 | for (i=0; i < ETH_ALEN/2; i++) |
1827 | writereg(dev, PP_IA+i*2, dev->dev_addr[i*2] | (dev->dev_addr[i*2+1] << 8)); | 1819 | writereg(dev, PP_IA+i*2, dev->dev_addr[i*2] | (dev->dev_addr[i*2+1] << 8)); |