drivers/net/pcmcia: Use pr_<level> and netdev_<level>
On Mon, 2010-08-09 at 17:34 +0200, Dominik Brodowski wrote: > look good from a PCMCIA point of view, therefore: > Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net> If PCMCIA is still being looked after, then here's another for you, maybe for 2.6.37. Use the more descriptive logging message styles. There are whitespace/indentation errors in the original sources that these changes do not modify, so checkpatch errors were cheerfully ignored. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
00093fab98
commit
636b8116d4
9 changed files with 298 additions and 314 deletions
|
@ -19,6 +19,8 @@
|
|||
|
||||
======================================================================*/
|
||||
|
||||
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
||||
|
||||
#define DRV_NAME "3c589_cs"
|
||||
#define DRV_VERSION "1.162-ac"
|
||||
|
||||
|
@ -273,8 +275,7 @@ static int tc589_config(struct pcmcia_device *link)
|
|||
phys_addr = (__be16 *)dev->dev_addr;
|
||||
/* Is this a 3c562? */
|
||||
if (link->manf_id != MANFID_3COM)
|
||||
printk(KERN_INFO "3c589_cs: hmmm, is this really a "
|
||||
"3Com card??\n");
|
||||
dev_info(&link->dev, "hmmm, is this really a 3Com card??\n");
|
||||
multi = (link->card_id == PRODID_3COM_3C562);
|
||||
|
||||
link->io_lines = 16;
|
||||
|
@ -315,8 +316,8 @@ static int tc589_config(struct pcmcia_device *link)
|
|||
for (i = 0; i < 3; i++)
|
||||
phys_addr[i] = htons(read_eeprom(ioaddr, i));
|
||||
if (phys_addr[0] == htons(0x6060)) {
|
||||
printk(KERN_ERR "3c589_cs: IO port conflict at 0x%03lx"
|
||||
"-0x%03lx\n", dev->base_addr, dev->base_addr+15);
|
||||
dev_err(&link->dev, "IO port conflict at 0x%03lx-0x%03lx\n",
|
||||
dev->base_addr, dev->base_addr+15);
|
||||
goto failed;
|
||||
}
|
||||
}
|
||||
|
@ -330,12 +331,12 @@ static int tc589_config(struct pcmcia_device *link)
|
|||
if ((if_port >= 0) && (if_port <= 3))
|
||||
dev->if_port = if_port;
|
||||
else
|
||||
printk(KERN_ERR "3c589_cs: invalid if_port requested\n");
|
||||
dev_err(&link->dev, "invalid if_port requested\n");
|
||||
|
||||
SET_NETDEV_DEV(dev, &link->dev);
|
||||
|
||||
if (register_netdev(dev) != 0) {
|
||||
printk(KERN_ERR "3c589_cs: register_netdev() failed\n");
|
||||
dev_err(&link->dev, "register_netdev() failed\n");
|
||||
goto failed;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue