]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/smc9194.c
hdlcdrv: Fix CRC calculation.
[linux-2.6-omap-h63xx.git] / drivers / net / smc9194.c
index 5b6748e3ea0e0faba596fa624c7e919071afdf62..de67744c4a2a1f1cf960e80a8cd0ec309db36e58 100644 (file)
@@ -876,6 +876,8 @@ static int __init smc_probe(struct net_device *dev, int ioaddr)
        word memory_info_register;
        word memory_cfg_register;
 
+       DECLARE_MAC_BUF(mac);
+
        /* Grab the region so that no one else tries to probe our ioports. */
        if (!request_region(ioaddr, SMC_IO_EXTENT, DRV_NAME))
                return -EBUSY;
@@ -904,7 +906,7 @@ static int __init smc_probe(struct net_device *dev, int ioaddr)
        SMC_SELECT_BANK(1);
        base_address_register = inw( ioaddr + BASE );
        if ( ioaddr != ( base_address_register >> 3 & 0x3E0 ) )  {
-               printk(CARDNAME ": IOADDR %x doesn't match configuration (%x)."
+               printk(CARDNAME ": IOADDR %x doesn't match configuration (%x). "
                        "Probably not a SMC chip\n",
                        ioaddr, base_address_register >> 3 & 0x3E0 );
                /* well, the base address register didn't match.  Must not have
@@ -1031,10 +1033,7 @@ static int __init smc_probe(struct net_device *dev, int ioaddr)
        /*
         . Print the Ethernet address
        */
-       printk("ADDR: ");
-       for (i = 0; i < 5; i++)
-               printk("%2.2x:", dev->dev_addr[i] );
-       printk("%2.2x \n", dev->dev_addr[5] );
+       printk("ADDR: %s\n", print_mac(mac, dev->dev_addr));
 
        /* set the private data to zero by default */
        memset(dev->priv, 0, sizeof(struct smc_local));