diff options
Diffstat (limited to 'drivers/net/arm')
-rw-r--r-- | drivers/net/arm/am79c961a.c | 6 | ||||
-rw-r--r-- | drivers/net/arm/at91_ether.c | 10 | ||||
-rw-r--r-- | drivers/net/arm/ether1.c | 5 | ||||
-rw-r--r-- | drivers/net/arm/ether3.c | 5 | ||||
-rw-r--r-- | drivers/net/arm/etherh.c | 5 |
5 files changed, 12 insertions, 19 deletions
diff --git a/drivers/net/arm/am79c961a.c b/drivers/net/arm/am79c961a.c index aa4a5246be53..645915553182 100644 --- a/drivers/net/arm/am79c961a.c +++ b/drivers/net/arm/am79c961a.c | |||
@@ -745,10 +745,8 @@ static int __init am79c961_probe(struct platform_device *pdev) | |||
745 | 745 | ||
746 | ret = register_netdev(dev); | 746 | ret = register_netdev(dev); |
747 | if (ret == 0) { | 747 | if (ret == 0) { |
748 | DECLARE_MAC_BUF(mac); | 748 | printk(KERN_INFO "%s: ether address %pM\n", |
749 | 749 | dev->name, dev->dev_addr); | |
750 | printk(KERN_INFO "%s: ether address %s\n", | ||
751 | dev->name, print_mac(mac, dev->dev_addr)); | ||
752 | return 0; | 750 | return 0; |
753 | } | 751 | } |
754 | 752 | ||
diff --git a/drivers/net/arm/at91_ether.c b/drivers/net/arm/at91_ether.c index 0fa53464efb2..65ce451ae961 100644 --- a/drivers/net/arm/at91_ether.c +++ b/drivers/net/arm/at91_ether.c | |||
@@ -485,7 +485,6 @@ static void update_mac_address(struct net_device *dev) | |||
485 | static int set_mac_address(struct net_device *dev, void* addr) | 485 | static int set_mac_address(struct net_device *dev, void* addr) |
486 | { | 486 | { |
487 | struct sockaddr *address = addr; | 487 | struct sockaddr *address = addr; |
488 | DECLARE_MAC_BUF(mac); | ||
489 | 488 | ||
490 | if (!is_valid_ether_addr(address->sa_data)) | 489 | if (!is_valid_ether_addr(address->sa_data)) |
491 | return -EADDRNOTAVAIL; | 490 | return -EADDRNOTAVAIL; |
@@ -493,8 +492,8 @@ static int set_mac_address(struct net_device *dev, void* addr) | |||
493 | memcpy(dev->dev_addr, address->sa_data, dev->addr_len); | 492 | memcpy(dev->dev_addr, address->sa_data, dev->addr_len); |
494 | update_mac_address(dev); | 493 | update_mac_address(dev); |
495 | 494 | ||
496 | printk("%s: Setting MAC address to %s\n", dev->name, | 495 | printk("%s: Setting MAC address to %pM\n", dev->name, |
497 | print_mac(mac, dev->dev_addr)); | 496 | dev->dev_addr); |
498 | 497 | ||
499 | return 0; | 498 | return 0; |
500 | } | 499 | } |
@@ -978,7 +977,6 @@ static int __init at91ether_setup(unsigned long phy_type, unsigned short phy_add | |||
978 | struct at91_private *lp; | 977 | struct at91_private *lp; |
979 | unsigned int val; | 978 | unsigned int val; |
980 | int res; | 979 | int res; |
981 | DECLARE_MAC_BUF(mac); | ||
982 | 980 | ||
983 | dev = alloc_etherdev(sizeof(struct at91_private)); | 981 | dev = alloc_etherdev(sizeof(struct at91_private)); |
984 | if (!dev) | 982 | if (!dev) |
@@ -1083,11 +1081,11 @@ static int __init at91ether_setup(unsigned long phy_type, unsigned short phy_add | |||
1083 | } | 1081 | } |
1084 | 1082 | ||
1085 | /* Display ethernet banner */ | 1083 | /* Display ethernet banner */ |
1086 | printk(KERN_INFO "%s: AT91 ethernet at 0x%08x int=%d %s%s (%s)\n", | 1084 | printk(KERN_INFO "%s: AT91 ethernet at 0x%08x int=%d %s%s (%pM)\n", |
1087 | dev->name, (uint) dev->base_addr, dev->irq, | 1085 | dev->name, (uint) dev->base_addr, dev->irq, |
1088 | at91_emac_read(AT91_EMAC_CFG) & AT91_EMAC_SPD ? "100-" : "10-", | 1086 | at91_emac_read(AT91_EMAC_CFG) & AT91_EMAC_SPD ? "100-" : "10-", |
1089 | at91_emac_read(AT91_EMAC_CFG) & AT91_EMAC_FD ? "FullDuplex" : "HalfDuplex", | 1087 | at91_emac_read(AT91_EMAC_CFG) & AT91_EMAC_FD ? "FullDuplex" : "HalfDuplex", |
1090 | print_mac(mac, dev->dev_addr)); | 1088 | dev->dev_addr); |
1091 | if ((phy_type == MII_DM9161_ID) || (lp->phy_type == MII_DM9161A_ID)) | 1089 | if ((phy_type == MII_DM9161_ID) || (lp->phy_type == MII_DM9161A_ID)) |
1092 | printk(KERN_INFO "%s: Davicom 9161 PHY %s\n", dev->name, (lp->phy_media == PORT_FIBRE) ? "(Fiber)" : "(Copper)"); | 1090 | printk(KERN_INFO "%s: Davicom 9161 PHY %s\n", dev->name, (lp->phy_media == PORT_FIBRE) ? "(Fiber)" : "(Copper)"); |
1093 | else if (phy_type == MII_LXT971A_ID) | 1091 | else if (phy_type == MII_LXT971A_ID) |
diff --git a/drivers/net/arm/ether1.c b/drivers/net/arm/ether1.c index 3bb9e293e2ef..e380de454463 100644 --- a/drivers/net/arm/ether1.c +++ b/drivers/net/arm/ether1.c | |||
@@ -996,7 +996,6 @@ ether1_probe(struct expansion_card *ec, const struct ecard_id *id) | |||
996 | { | 996 | { |
997 | struct net_device *dev; | 997 | struct net_device *dev; |
998 | int i, ret = 0; | 998 | int i, ret = 0; |
999 | DECLARE_MAC_BUF(mac); | ||
1000 | 999 | ||
1001 | ether1_banner(); | 1000 | ether1_banner(); |
1002 | 1001 | ||
@@ -1044,8 +1043,8 @@ ether1_probe(struct expansion_card *ec, const struct ecard_id *id) | |||
1044 | if (ret) | 1043 | if (ret) |
1045 | goto free; | 1044 | goto free; |
1046 | 1045 | ||
1047 | printk(KERN_INFO "%s: ether1 in slot %d, %s\n", | 1046 | printk(KERN_INFO "%s: ether1 in slot %d, %pM\n", |
1048 | dev->name, ec->slot_no, print_mac(mac, dev->dev_addr)); | 1047 | dev->name, ec->slot_no, dev->dev_addr); |
1049 | 1048 | ||
1050 | ecard_set_drvdata(ec, dev); | 1049 | ecard_set_drvdata(ec, dev); |
1051 | return 0; | 1050 | return 0; |
diff --git a/drivers/net/arm/ether3.c b/drivers/net/arm/ether3.c index 67e96ae85035..21a7bef12d3b 100644 --- a/drivers/net/arm/ether3.c +++ b/drivers/net/arm/ether3.c | |||
@@ -776,7 +776,6 @@ ether3_probe(struct expansion_card *ec, const struct ecard_id *id) | |||
776 | const struct ether3_data *data = id->data; | 776 | const struct ether3_data *data = id->data; |
777 | struct net_device *dev; | 777 | struct net_device *dev; |
778 | int bus_type, ret; | 778 | int bus_type, ret; |
779 | DECLARE_MAC_BUF(mac); | ||
780 | 779 | ||
781 | ether3_banner(); | 780 | ether3_banner(); |
782 | 781 | ||
@@ -859,8 +858,8 @@ ether3_probe(struct expansion_card *ec, const struct ecard_id *id) | |||
859 | if (ret) | 858 | if (ret) |
860 | goto free; | 859 | goto free; |
861 | 860 | ||
862 | printk("%s: %s in slot %d, %s\n", | 861 | printk("%s: %s in slot %d, %pM\n", |
863 | dev->name, data->name, ec->slot_no, print_mac(mac, dev->dev_addr)); | 862 | dev->name, data->name, ec->slot_no, dev->dev_addr); |
864 | 863 | ||
865 | ecard_set_drvdata(ec, dev); | 864 | ecard_set_drvdata(ec, dev); |
866 | return 0; | 865 | return 0; |
diff --git a/drivers/net/arm/etherh.c b/drivers/net/arm/etherh.c index 5c5f1e470d3c..9eb9d1bedc85 100644 --- a/drivers/net/arm/etherh.c +++ b/drivers/net/arm/etherh.c | |||
@@ -648,7 +648,6 @@ etherh_probe(struct expansion_card *ec, const struct ecard_id *id) | |||
648 | struct net_device *dev; | 648 | struct net_device *dev; |
649 | struct etherh_priv *eh; | 649 | struct etherh_priv *eh; |
650 | int ret; | 650 | int ret; |
651 | DECLARE_MAC_BUF(mac); | ||
652 | 651 | ||
653 | etherh_banner(); | 652 | etherh_banner(); |
654 | 653 | ||
@@ -746,8 +745,8 @@ etherh_probe(struct expansion_card *ec, const struct ecard_id *id) | |||
746 | if (ret) | 745 | if (ret) |
747 | goto free; | 746 | goto free; |
748 | 747 | ||
749 | printk(KERN_INFO "%s: %s in slot %d, %s\n", | 748 | printk(KERN_INFO "%s: %s in slot %d, %pM\n", |
750 | dev->name, data->name, ec->slot_no, print_mac(mac, dev->dev_addr)); | 749 | dev->name, data->name, ec->slot_no, dev->dev_addr); |
751 | 750 | ||
752 | ecard_set_drvdata(ec, dev); | 751 | ecard_set_drvdata(ec, dev); |
753 | 752 | ||