Staging: ft1000-usb: use netdev_warn
authorAnders Darander <anders.darander@gmail.com>
Tue, 1 Apr 2014 06:29:40 +0000 (08:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 May 2014 20:48:36 +0000 (13:48 -0700)
Fix coding style issue by replacing printk with netdev_warn.

Signed-off-by: Anders Darander <anders.darander@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ft1000/ft1000-usb/ft1000_proc.c

index 28f07a7..e89b5d2 100644 (file)
@@ -203,7 +203,7 @@ int ft1000_init_proc(struct net_device *dev)
 
        info->ft1000_proc_dir = proc_mkdir(FT1000_PROC_DIR, FTNET_PROC);
        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);
                goto fail;
        }
@@ -213,7 +213,7 @@ int ft1000_init_proc(struct net_device *dev)
                                 &ft1000_proc_fops, dev);
 
        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;
        }