net/bonding: Handlle wrong assumptions that slave is always an Ethernet device
[safe/jmp/linux-2.6] / drivers / net / jazzsonic.c
index b71e663..d3825c8 100644 (file)
@@ -209,6 +209,7 @@ static int __init jazz_sonic_probe(struct platform_device *pdev)
        struct resource *res;
        int err = 0;
        int i;
+       DECLARE_MAC_BUF(mac);
 
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
        if (!res)
@@ -221,7 +222,6 @@ static int __init jazz_sonic_probe(struct platform_device *pdev)
        lp = netdev_priv(dev);
        lp->device = &pdev->dev;
        SET_NETDEV_DEV(dev, &pdev->dev);
-       SET_MODULE_OWNER(dev);
 
        netdev_boot_setup_check(dev);
 
@@ -234,13 +234,8 @@ static int __init jazz_sonic_probe(struct platform_device *pdev)
        if (err)
                goto out1;
 
-       printk("%s: MAC ", dev->name);
-       for (i = 0; i < 6; i++) {
-               printk("%2.2x", dev->dev_addr[i]);
-               if (i < 5)
-                       printk(":");
-       }
-       printk(" IRQ %d\n", dev->irq);
+       printk("%s: MAC %s IRQ %d\n",
+              dev->name, print_mac(mac, dev->dev_addr), dev->irq);
 
        return 0;