[media] Staging/media: Use dev_ printks in go7007/go7007-v4l2.c
authorYAMANE Toshiaki <yamanetoshi@gmail.com>
Tue, 6 Nov 2012 11:34:20 +0000 (08:34 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 21 Dec 2012 20:53:25 +0000 (18:53 -0200)
fixed below checkpatch warning.
- WARNING: Prefer netdev_info(netdev, ... then dev_info(dev, ... then pr_info(...  to printk(KERN_INFO ...

Signed-off-by: YAMANE Toshiaki <yamanetoshi@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/media/go7007/go7007-v4l2.c

index a78133b67de2049f80190d3a2672c6fadbcaa68a..0d3713dceba5a165f69641314c877d7d3a9b86a8 100644 (file)
@@ -1811,8 +1811,8 @@ int go7007_v4l2_init(struct go7007 *go)
        }
        video_set_drvdata(go->video_dev, go);
        ++go->ref_count;
-       printk(KERN_INFO "%s: registered device %s [v4l2]\n",
-              go->video_dev->name, video_device_node_name(go->video_dev));
+       dev_info(go->dev, "registered device %s [v4l2]\n",
+                video_device_node_name(go->video_dev));
 
        return 0;
 }