···335335 irq = pdev->irq;336336337337 if (pci_resource_len(pdev, 0) < EPIC_TOTAL_SIZE) {338338- dev_printk(KERN_ERR, &pdev->dev, "no PCI region space\n");338338+ dev_err(&pdev->dev, "no PCI region space\n");339339 ret = -ENODEV;340340 goto err_out_disable;341341 }···350350351351 dev = alloc_etherdev(sizeof (*ep));352352 if (!dev) {353353- dev_printk(KERN_ERR, &pdev->dev, "no memory for eth device\n");353353+ dev_err(&pdev->dev, "no memory for eth device\n");354354 goto err_out_free_res;355355 }356356 SET_MODULE_OWNER(dev);···362362 ioaddr = pci_resource_start (pdev, 1);363363 ioaddr = (long) ioremap (ioaddr, pci_resource_len (pdev, 1));364364 if (!ioaddr) {365365- dev_printk(KERN_ERR, &pdev->dev, "ioremap failed\n");365365+ dev_err(&pdev->dev, "ioremap failed\n");366366 goto err_out_free_netdev;367367 }368368#endif···444444 int mii_status = mdio_read(dev, phy, MII_BMSR);445445 if (mii_status != 0xffff && mii_status != 0x0000) {446446 ep->phys[phy_idx++] = phy;447447- dev_printk(KERN_INFO, &pdev->dev,447447+ dev_info(&pdev->dev,448448 "MII transceiver #%d control "449449 "%4.4x status %4.4x.\n",450450 phy, mdio_read(dev, phy, 0), mii_status);···454454 if (phy_idx != 0) {455455 phy = ep->phys[0];456456 ep->mii.advertising = mdio_read(dev, phy, MII_ADVERTISE);457457- dev_printk(KERN_INFO, &pdev->dev,457457+ dev_info(&pdev->dev,458458 "Autonegotiation advertising %4.4x link "459459 "partner %4.4x.\n",460460 ep->mii.advertising, mdio_read(dev, phy, 5));461461 } else if ( ! (ep->chip_flags & NO_MII)) {462462- dev_printk(KERN_WARNING, &pdev->dev,462462+ dev_warn(&pdev->dev,463463 "***WARNING***: No MII transceiver found!\n");464464 /* Use the known PHY address of the EPII. */465465 ep->phys[0] = 3;···475475 /* The lower four bits are the media type. */476476 if (duplex) {477477 ep->mii.force_media = ep->mii.full_duplex = 1;478478- dev_printk(KERN_INFO, &pdev->dev,479479- "Forced full duplex operation requested.\n");478478+ dev_info(&pdev->dev, "Forced full duplex requested.\n");480479 }481480 dev->if_port = ep->default_port = option;482481
+4-5
drivers/net/fealnx.c
···505505506506 len = pci_resource_len(pdev, bar);507507 if (len < MIN_REGION_SIZE) {508508- dev_printk(KERN_ERR, &pdev->dev,508508+ dev_err(&pdev->dev,509509 "region size %ld too small, aborting\n", len);510510 return -ENODEV;511511 }···578578579579 if (mii_status != 0xffff && mii_status != 0x0000) {580580 np->phys[phy_idx++] = phy;581581- dev_printk(KERN_INFO, &pdev->dev,581581+ dev_info(&pdev->dev,582582 "MII PHY found at address %d, status "583583 "0x%4.4x.\n", phy, mii_status);584584 /* get phy type */···604604605605 np->mii_cnt = phy_idx;606606 if (phy_idx == 0)607607- dev_printk(KERN_WARNING, &pdev->dev,607607+ dev_warn(&pdev->dev,608608 "MII PHY not found -- this device may "609609 "not operate correctly.\n");610610 } else {···632632 np->mii.full_duplex = full_duplex[card_idx];633633634634 if (np->mii.full_duplex) {635635- dev_printk(KERN_INFO, &pdev->dev,636636- "Media type forced to Full Duplex.\n");635635+ dev_info(&pdev->dev, "Media type forced to Full Duplex.\n");637636/* 89/6/13 add, (begin) */638637// if (np->PHYType==MarvellPHY)639638 if ((np->PHYType == MarvellPHY) || (np->PHYType == LevelOnePHY)) {
+4-7
drivers/net/ne2k-pci.c
···231231 irq = pdev->irq;232232233233 if (!ioaddr || ((pci_resource_flags (pdev, 0) & IORESOURCE_IO) == 0)) {234234- dev_printk (KERN_ERR, &pdev->dev,235235- "no I/O resource at PCI BAR #0\n");234234+ dev_err(&pdev->dev, "no I/O resource at PCI BAR #0\n");236235 return -ENODEV;237236 }238237239238 if (request_region (ioaddr, NE_IO_EXTENT, DRV_NAME) == NULL) {240240- dev_printk (KERN_ERR, &pdev->dev,241241- "I/O resource 0x%x @ 0x%lx busy\n",239239+ dev_err(&pdev->dev, "I/O resource 0x%x @ 0x%lx busy\n",242240 NE_IO_EXTENT, ioaddr);243241 return -EBUSY;244242 }···263265 /* Allocate net_device, dev->priv; fill in 8390 specific dev fields. */264266 dev = alloc_ei_netdev();265267 if (!dev) {266266- dev_printk (KERN_ERR, &pdev->dev,267267- "cannot allocate ethernet device\n");268268+ dev_err(&pdev->dev, "cannot allocate ethernet device\n");268269 goto err_out_free_res;269270 }270271 SET_MODULE_OWNER(dev);···281284 while ((inb(ioaddr + EN0_ISR) & ENISR_RESET) == 0)282285 /* Limit wait: '2' avoids jiffy roll-over. */283286 if (jiffies - reset_start_time > 2) {284284- dev_printk(KERN_ERR, &pdev->dev,287287+ dev_err(&pdev->dev,285288 "Card failure (no reset ack).\n");286289 goto err_out_free_netdev;287290 }