Commit aa21894b authored by Kumari Radha's avatar Kumari Radha Committed by Greg Kroah-Hartman

staging: ft1000: ft1000-pcmcia: Replace printks with netdev_<level> and dev_<level>

This patch replaces printk(KERN_INFO ... with dev_info and printk(KERN_ERR ... with netdev_err fixing following checkpatch.pl warnings in ft1000_hw.c:
WARNING: Prefer [subsystem eg: netdev]_info([subsystem]dev,  ... then dev_info(dev,  ... then pr_info(...  to printk(KERN_INFO ...
WARNING: Prefer [subsystem eg: netdev]_err([subsystem]dev,  ... then dev_err(dev,  ... then pr_err(...  to printk(KERN_ERR ...
Signed-off-by: default avatarKumari Radha <kumari.radha3@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4ecdc381
...@@ -2154,14 +2154,14 @@ struct net_device *init_ft1000_card(struct pcmcia_device *link, ...@@ -2154,14 +2154,14 @@ struct net_device *init_ft1000_card(struct pcmcia_device *link,
if (flarion_ft1000_cnt > 1) { if (flarion_ft1000_cnt > 1) {
flarion_ft1000_cnt--; flarion_ft1000_cnt--;
printk(KERN_INFO dev_info(&link->dev,
"ft1000: This driver can not support more than one instance\n"); "This driver can not support more than one instance\n");
return NULL; return NULL;
} }
dev = alloc_etherdev(sizeof(struct ft1000_info)); dev = alloc_etherdev(sizeof(struct ft1000_info));
if (!dev) { if (!dev) {
printk(KERN_ERR "ft1000: failed to allocate etherdev\n"); dev_err(&link->dev, "Failed to allocate etherdev\n");
return NULL; return NULL;
} }
...@@ -2209,17 +2209,17 @@ struct net_device *init_ft1000_card(struct pcmcia_device *link, ...@@ -2209,17 +2209,17 @@ struct net_device *init_ft1000_card(struct pcmcia_device *link,
dev->irq = link->irq; dev->irq = link->irq;
dev->base_addr = link->resource[0]->start; dev->base_addr = link->resource[0]->start;
if (pcmcia_get_mac_from_cis(link, dev)) { if (pcmcia_get_mac_from_cis(link, dev)) {
printk(KERN_ERR "ft1000: Could not read mac address\n"); netdev_err(dev, "Could not read mac address\n");
goto err_dev; goto err_dev;
} }
if (request_irq(dev->irq, ft1000_interrupt, IRQF_SHARED, dev->name, dev)) { if (request_irq(dev->irq, ft1000_interrupt, IRQF_SHARED, dev->name, dev)) {
printk(KERN_ERR "ft1000: Could not request_irq\n"); netdev_err(dev, "Could not request_irq\n");
goto err_dev; goto err_dev;
} }
if (request_region(dev->base_addr, 256, dev->name) == NULL) { if (request_region(dev->base_addr, 256, dev->name) == NULL) {
printk(KERN_ERR "ft1000: Could not request_region\n"); netdev_err(dev, "Could not request_region\n");
goto err_irq; goto err_irq;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment