drivers/net/ks*: Use netdev_<level>, netif_<level> and pr_<level>
I'm not sure this is correct. It changes logging macros from: dev_<level>(&ks->spidev->dev, to netdev_<level>(ks->netdev, Comments? Use netdev_<level> Use netif_<level> Use pr_<level> Add #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt Add missing line to message in ks8851_remove Change kmalloc/memset(,0) to kzalloc Remove ks_<level> macros Consolidation code into set_media_state Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
ca50910185
commit
0dc7d2b3cb
@@ -20,6 +20,8 @@
|
||||
* The Micrel KS8842 behind the timberdale FPGA
|
||||
*/
|
||||
|
||||
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
||||
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/platform_device.h>
|
||||
@@ -525,8 +527,7 @@ static int ks8842_open(struct net_device *netdev)
|
||||
err = request_irq(adapter->irq, ks8842_irq, IRQF_SHARED, DRV_NAME,
|
||||
adapter);
|
||||
if (err) {
|
||||
printk(KERN_ERR "Failed to request IRQ: %d: %d\n",
|
||||
adapter->irq, err);
|
||||
pr_err("Failed to request IRQ: %d: %d\n", adapter->irq, err);
|
||||
return err;
|
||||
}
|
||||
|
||||
@@ -668,8 +669,7 @@ static int __devinit ks8842_probe(struct platform_device *pdev)
|
||||
|
||||
platform_set_drvdata(pdev, netdev);
|
||||
|
||||
printk(KERN_INFO DRV_NAME
|
||||
" Found chip, family: 0x%x, id: 0x%x, rev: 0x%x\n",
|
||||
pr_info("Found chip, family: 0x%x, id: 0x%x, rev: 0x%x\n",
|
||||
(id >> 8) & 0xff, (id >> 4) & 0xf, (id >> 1) & 0x7);
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user