]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
[media] staging/media: Use dev_ printks in go7007/go7007-driver.c
authorYAMANE Toshiaki <yamanetoshi@gmail.com>
Sun, 4 Nov 2012 19:40:22 +0000 (16:40 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 21 Dec 2012 20:38:02 +0000 (18:38 -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-driver.c

index ece2dd146487b5051bb22e82560b2b871750fe8d..c9dfc75d1d2c3368193893f6928c5ea3097ad7d3 100644 (file)
@@ -201,7 +201,8 @@ static int init_i2c_module(struct i2c_adapter *adapter, const char *type,
        if (v4l2_i2c_new_subdev(v4l2_dev, adapter, type, addr, NULL))
                return 0;
 
-       printk(KERN_INFO "go7007: probing for module i2c:%s failed\n", type);
+       dev_info(&adapter->dev,
+                "go7007: probing for module i2c:%s failed\n", type);
        return -1;
 }
 
@@ -217,7 +218,7 @@ int go7007_register_encoder(struct go7007 *go)
 {
        int i, ret;
 
-       printk(KERN_INFO "go7007: registering new %s\n", go->name);
+       dev_info(go->dev, "go7007: registering new %s\n", go->name);
 
        mutex_lock(&go->hw_lock);
        ret = go7007_init_encoder(go);