Commit a713cd59 authored by Anders Darander's avatar Anders Darander Committed by Greg Kroah-Hartman

Staging: ft1000-usb: use netdev_warn

Fix coding style issue by replacing printk with netdev_warn.
Signed-off-by: default avatarAnders Darander <anders.darander@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 87a76301
...@@ -203,7 +203,7 @@ int ft1000_init_proc(struct net_device *dev) ...@@ -203,7 +203,7 @@ int ft1000_init_proc(struct net_device *dev)
info->ft1000_proc_dir = proc_mkdir(FT1000_PROC_DIR, FTNET_PROC); info->ft1000_proc_dir = proc_mkdir(FT1000_PROC_DIR, FTNET_PROC);
if (info->ft1000_proc_dir == NULL) { if (info->ft1000_proc_dir == NULL) {
printk(KERN_WARNING "Unable to create %s dir.\n", netdev_warn(dev, "Unable to create %s dir.\n",
FT1000_PROC_DIR); FT1000_PROC_DIR);
goto fail; goto fail;
} }
...@@ -213,7 +213,7 @@ int ft1000_init_proc(struct net_device *dev) ...@@ -213,7 +213,7 @@ int ft1000_init_proc(struct net_device *dev)
&ft1000_proc_fops, dev); &ft1000_proc_fops, dev);
if (!ft1000_proc_file) { if (!ft1000_proc_file) {
printk(KERN_WARNING "Unable to create /proc entry.\n"); netdev_warn(dev, "Unable to create /proc entry.\n");
goto fail_entry; goto fail_entry;
} }
......
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