diff options
Diffstat (limited to 'drivers/net/cs89x0.c')
-rw-r--r-- | drivers/net/cs89x0.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/drivers/net/cs89x0.c b/drivers/net/cs89x0.c index 7107620f615d..d548a45d59d5 100644 --- a/drivers/net/cs89x0.c +++ b/drivers/net/cs89x0.c | |||
@@ -521,7 +521,6 @@ cs89x0_probe1(struct net_device *dev, int ioaddr, int modular) | |||
521 | unsigned rev_type = 0; | 521 | unsigned rev_type = 0; |
522 | int eeprom_buff[CHKSUM_LEN]; | 522 | int eeprom_buff[CHKSUM_LEN]; |
523 | int retval; | 523 | int retval; |
524 | DECLARE_MAC_BUF(mac); | ||
525 | 524 | ||
526 | /* Initialize the device structure. */ | 525 | /* Initialize the device structure. */ |
527 | if (!modular) { | 526 | if (!modular) { |
@@ -846,7 +845,7 @@ cs89x0_probe1(struct net_device *dev, int ioaddr, int modular) | |||
846 | } | 845 | } |
847 | 846 | ||
848 | /* print the ethernet address. */ | 847 | /* print the ethernet address. */ |
849 | printk(", MAC %s", print_mac(mac, dev->dev_addr)); | 848 | printk(", MAC %pM", dev->dev_addr); |
850 | 849 | ||
851 | dev->open = net_open; | 850 | dev->open = net_open; |
852 | dev->stop = net_close; | 851 | dev->stop = net_close; |
@@ -1025,14 +1024,13 @@ skip_this_frame: | |||
1025 | } | 1024 | } |
1026 | skb->protocol=eth_type_trans(skb,dev); | 1025 | skb->protocol=eth_type_trans(skb,dev); |
1027 | netif_rx(skb); | 1026 | netif_rx(skb); |
1028 | dev->last_rx = jiffies; | ||
1029 | lp->stats.rx_packets++; | 1027 | lp->stats.rx_packets++; |
1030 | lp->stats.rx_bytes += length; | 1028 | lp->stats.rx_bytes += length; |
1031 | } | 1029 | } |
1032 | 1030 | ||
1033 | #endif /* ALLOW_DMA */ | 1031 | #endif /* ALLOW_DMA */ |
1034 | 1032 | ||
1035 | void __init reset_chip(struct net_device *dev) | 1033 | static void __init reset_chip(struct net_device *dev) |
1036 | { | 1034 | { |
1037 | #if !defined(CONFIG_MACH_MX31ADS) | 1035 | #if !defined(CONFIG_MACH_MX31ADS) |
1038 | #if !defined(CONFIG_MACH_IXDP2351) && !defined(CONFIG_ARCH_IXDP2X01) | 1036 | #if !defined(CONFIG_MACH_IXDP2351) && !defined(CONFIG_ARCH_IXDP2X01) |
@@ -1719,7 +1717,6 @@ net_rx(struct net_device *dev) | |||
1719 | 1717 | ||
1720 | skb->protocol=eth_type_trans(skb,dev); | 1718 | skb->protocol=eth_type_trans(skb,dev); |
1721 | netif_rx(skb); | 1719 | netif_rx(skb); |
1722 | dev->last_rx = jiffies; | ||
1723 | lp->stats.rx_packets++; | 1720 | lp->stats.rx_packets++; |
1724 | lp->stats.rx_bytes += length; | 1721 | lp->stats.rx_bytes += length; |
1725 | } | 1722 | } |
@@ -1817,11 +1814,10 @@ static int set_mac_address(struct net_device *dev, void *p) | |||
1817 | 1814 | ||
1818 | memcpy(dev->dev_addr, addr->sa_data, dev->addr_len); | 1815 | memcpy(dev->dev_addr, addr->sa_data, dev->addr_len); |
1819 | 1816 | ||
1820 | if (net_debug) { | 1817 | if (net_debug) |
1821 | DECLARE_MAC_BUF(mac); | 1818 | printk("%s: Setting MAC address to %pM.\n", |
1822 | printk("%s: Setting MAC address to %s.\n", | 1819 | dev->name, dev->dev_addr); |
1823 | dev->name, print_mac(mac, dev->dev_addr)); | 1820 | |
1824 | } | ||
1825 | /* set the Ethernet address */ | 1821 | /* set the Ethernet address */ |
1826 | for (i=0; i < ETH_ALEN/2; i++) | 1822 | 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)); | 1823 | writereg(dev, PP_IA+i*2, dev->dev_addr[i*2] | (dev->dev_addr[i*2+1] << 8)); |