]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/mac89x0.c
net: convert print_mac to %pM
[linux-2.6-omap-h63xx.git] / drivers / net / mac89x0.c
index a19b5958cee949e89548bbb50acf7768ac44de2f..ca9c5a85867904534b83fa65704e949735b0c76e 100644 (file)
@@ -181,7 +181,9 @@ struct net_device * __init mac89x0_probe(int unit)
        unsigned long ioaddr;
        unsigned short sig;
        int err = -ENODEV;
-       DECLARE_MAC_BUF(mac);
+
+       if (!MACH_IS_MAC)
+               return ERR_PTR(-ENODEV);
 
        dev = alloc_etherdev(sizeof(struct net_local));
        if (!dev)
@@ -276,8 +278,7 @@ struct net_device * __init mac89x0_probe(int unit)
 
        /* print the IRQ and ethernet address. */
 
-       printk(" IRQ %d ADDR %s\n",
-              dev->irq, print_mac(mac, dev->dev_addr));
+       printk(" IRQ %d ADDR %pM\n", dev->irq, dev->dev_addr);
 
        dev->open               = net_open;
        dev->stop               = net_close;
@@ -289,7 +290,7 @@ struct net_device * __init mac89x0_probe(int unit)
        err = register_netdev(dev);
        if (err)
                goto out1;
-       return 0;
+       return NULL;
 out1:
        nubus_writew(0, dev->base_addr + ADD_PORT);
 out: