[netdrvr] Use dev_printk() when ethernet interface isn't available
For messages prior to register_netdev(), prefer dev_printk() because
that prints out both our driver name and our [PCI | whatever] bus id.
Updates: 8139{cp,too}, b44, bnx2, cassini, {eepro,epic}100, fealnx,
hamachi, ne2k-pci, ns83820, pci-skeleton, r8169.
Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
@@ -601,7 +601,8 @@ static int __devinit hamachi_init_one (struct pci_dev *pdev,
|
||||
pci_set_master(pdev);
|
||||
|
||||
i = pci_request_regions(pdev, DRV_NAME);
|
||||
if (i) return i;
|
||||
if (i)
|
||||
return i;
|
||||
|
||||
irq = pdev->irq;
|
||||
ioaddr = ioremap(base, 0x400);
|
||||
|
||||
Reference in New Issue
Block a user