diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-10-27 18:59:26 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-27 20:06:18 -0400 |
commit | e174961ca1a0b28f7abf0be47973ad57cb74e5f0 (patch) | |
tree | e8f74ecd420a0e380a71670e5aec5c2a0c15640a /drivers/net/arm/at91_ether.c | |
parent | 0c68ae2605dbcf67414d8d1f19af93be44b355fb (diff) |
net: convert print_mac to %pM
This converts pretty much everything to print_mac. There were
a few things that had conflicts which I have just dropped for
now, no harm done.
I've built an allyesconfig with this and looked at the files
that weren't built very carefully, but it's a huge patch.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/arm/at91_ether.c')
-rw-r--r-- | drivers/net/arm/at91_ether.c | 10 |
1 files changed, 4 insertions, 6 deletions
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) |