MODULE_DEVICE_TABLE(pci, c2_pci_table);
 
-static void c2_print_macaddr(struct net_device *netdev)
-{
-       pr_debug("%s: MAC %pM, IRQ %u\n", netdev->name, netdev->dev_addr, netdev->irq);
-}
-
 static void c2_set_rxbufsize(struct c2_port *c2_port)
 {
        struct net_device *netdev = c2_port->netdev;
        /* Validate the MAC address */
        if (!is_valid_ether_addr(netdev->dev_addr)) {
                pr_debug("Invalid MAC Address\n");
-               c2_print_macaddr(netdev);
+               pr_debug("%s: MAC %pM, IRQ %u\n", netdev->name,
+                        netdev->dev_addr, netdev->irq);
                free_netdev(netdev);
                return NULL;
        }
        }
 
        /* Print out the MAC address */
-       c2_print_macaddr(netdev);
+       pr_debug("%s: MAC %pM, IRQ %u\n", netdev->name, netdev->dev_addr,
+                netdev->irq);
 
        ret = c2_rnic_init(c2dev);
        if (ret) {