diff options
author | Jeff Garzik <jeff@garzik.org> | 2006-06-27 11:39:50 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-07-05 13:42:57 -0400 |
commit | 9b91cf9daac41eeaaea57ecfe68dc13bb0305fa9 (patch) | |
tree | 301308991315efc8dbe07ccfe1ee2f937b50a1c1 /drivers/net/epic100.c | |
parent | 2e8a538d865de0eb9813c8a0f2284e920299c0cc (diff) |
[netdrvr] use dev_xxx() printk helpers, rather than dev_printk(KERN_xxx, ...
Suggested by Jiri Slaby.
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/epic100.c')
-rw-r--r-- | drivers/net/epic100.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/drivers/net/epic100.c b/drivers/net/epic100.c index 6dd0e9d159de..a67650ccf084 100644 --- a/drivers/net/epic100.c +++ b/drivers/net/epic100.c | |||
@@ -335,7 +335,7 @@ static int __devinit epic_init_one (struct pci_dev *pdev, | |||
335 | irq = pdev->irq; | 335 | irq = pdev->irq; |
336 | 336 | ||
337 | if (pci_resource_len(pdev, 0) < EPIC_TOTAL_SIZE) { | 337 | if (pci_resource_len(pdev, 0) < EPIC_TOTAL_SIZE) { |
338 | dev_printk(KERN_ERR, &pdev->dev, "no PCI region space\n"); | 338 | dev_err(&pdev->dev, "no PCI region space\n"); |
339 | ret = -ENODEV; | 339 | ret = -ENODEV; |
340 | goto err_out_disable; | 340 | goto err_out_disable; |
341 | } | 341 | } |
@@ -350,7 +350,7 @@ static int __devinit epic_init_one (struct pci_dev *pdev, | |||
350 | 350 | ||
351 | dev = alloc_etherdev(sizeof (*ep)); | 351 | dev = alloc_etherdev(sizeof (*ep)); |
352 | if (!dev) { | 352 | if (!dev) { |
353 | dev_printk(KERN_ERR, &pdev->dev, "no memory for eth device\n"); | 353 | dev_err(&pdev->dev, "no memory for eth device\n"); |
354 | goto err_out_free_res; | 354 | goto err_out_free_res; |
355 | } | 355 | } |
356 | SET_MODULE_OWNER(dev); | 356 | SET_MODULE_OWNER(dev); |
@@ -362,7 +362,7 @@ static int __devinit epic_init_one (struct pci_dev *pdev, | |||
362 | ioaddr = pci_resource_start (pdev, 1); | 362 | ioaddr = pci_resource_start (pdev, 1); |
363 | ioaddr = (long) ioremap (ioaddr, pci_resource_len (pdev, 1)); | 363 | ioaddr = (long) ioremap (ioaddr, pci_resource_len (pdev, 1)); |
364 | if (!ioaddr) { | 364 | if (!ioaddr) { |
365 | dev_printk(KERN_ERR, &pdev->dev, "ioremap failed\n"); | 365 | dev_err(&pdev->dev, "ioremap failed\n"); |
366 | goto err_out_free_netdev; | 366 | goto err_out_free_netdev; |
367 | } | 367 | } |
368 | #endif | 368 | #endif |
@@ -444,7 +444,7 @@ static int __devinit epic_init_one (struct pci_dev *pdev, | |||
444 | int mii_status = mdio_read(dev, phy, MII_BMSR); | 444 | int mii_status = mdio_read(dev, phy, MII_BMSR); |
445 | if (mii_status != 0xffff && mii_status != 0x0000) { | 445 | if (mii_status != 0xffff && mii_status != 0x0000) { |
446 | ep->phys[phy_idx++] = phy; | 446 | ep->phys[phy_idx++] = phy; |
447 | dev_printk(KERN_INFO, &pdev->dev, | 447 | dev_info(&pdev->dev, |
448 | "MII transceiver #%d control " | 448 | "MII transceiver #%d control " |
449 | "%4.4x status %4.4x.\n", | 449 | "%4.4x status %4.4x.\n", |
450 | phy, mdio_read(dev, phy, 0), mii_status); | 450 | phy, mdio_read(dev, phy, 0), mii_status); |
@@ -454,12 +454,12 @@ static int __devinit epic_init_one (struct pci_dev *pdev, | |||
454 | if (phy_idx != 0) { | 454 | if (phy_idx != 0) { |
455 | phy = ep->phys[0]; | 455 | phy = ep->phys[0]; |
456 | ep->mii.advertising = mdio_read(dev, phy, MII_ADVERTISE); | 456 | ep->mii.advertising = mdio_read(dev, phy, MII_ADVERTISE); |
457 | dev_printk(KERN_INFO, &pdev->dev, | 457 | dev_info(&pdev->dev, |
458 | "Autonegotiation advertising %4.4x link " | 458 | "Autonegotiation advertising %4.4x link " |
459 | "partner %4.4x.\n", | 459 | "partner %4.4x.\n", |
460 | ep->mii.advertising, mdio_read(dev, phy, 5)); | 460 | ep->mii.advertising, mdio_read(dev, phy, 5)); |
461 | } else if ( ! (ep->chip_flags & NO_MII)) { | 461 | } else if ( ! (ep->chip_flags & NO_MII)) { |
462 | dev_printk(KERN_WARNING, &pdev->dev, | 462 | dev_warn(&pdev->dev, |
463 | "***WARNING***: No MII transceiver found!\n"); | 463 | "***WARNING***: No MII transceiver found!\n"); |
464 | /* Use the known PHY address of the EPII. */ | 464 | /* Use the known PHY address of the EPII. */ |
465 | ep->phys[0] = 3; | 465 | ep->phys[0] = 3; |
@@ -475,8 +475,7 @@ static int __devinit epic_init_one (struct pci_dev *pdev, | |||
475 | /* The lower four bits are the media type. */ | 475 | /* The lower four bits are the media type. */ |
476 | if (duplex) { | 476 | if (duplex) { |
477 | ep->mii.force_media = ep->mii.full_duplex = 1; | 477 | ep->mii.force_media = ep->mii.full_duplex = 1; |
478 | dev_printk(KERN_INFO, &pdev->dev, | 478 | dev_info(&pdev->dev, "Forced full duplex requested.\n"); |
479 | "Forced full duplex operation requested.\n"); | ||
480 | } | 479 | } |
481 | dev->if_port = ep->default_port = option; | 480 | dev->if_port = ep->default_port = option; |
482 | 481 | ||