]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] staging/media: Use dev_ or pr_ printks in go7007/wis-saa7115.c
authorYAMANE Toshiaki <yamanetoshi@gmail.com>
Mon, 5 Nov 2012 10:36:26 +0000 (07:36 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 21 Nov 2012 15:16:04 +0000 (13:16 -0200)
fixed below checkpatch warnings.
- WARNING: Prefer netdev_err(netdev, ... then dev_err(dev, ... then pr_err(...  to printk(KERN_ERR ...
- WARNING: Prefer netdev_dbg(netdev, ... then dev_dbg(dev, ... then pr_debug(...  to printk(KERN_DEBUG ...

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

index a178b41c0a057506f9cc4cdc388ad7244720dfe6..fa86acd3fdf0d6f80dd9c9be1c50baa265bc2d7f 100644 (file)
@@ -414,12 +414,12 @@ static int wis_saa7115_probe(struct i2c_client *client,
        dec->hue = 0;
        i2c_set_clientdata(client, dec);
 
-       printk(KERN_DEBUG
+       dev_dbg(&client->dev,
                "wis-saa7115: initializing SAA7115 at address %d on %s\n",
                client->addr, adapter->name);
 
        if (write_regs(client, initial_registers) < 0) {
-               printk(KERN_ERR
+               dev_err(&client->dev,
                        "wis-saa7115: error initializing SAA7115\n");
                kfree(dec);
                return -ENODEV;