diff options
author | YAMANE Toshiaki <yamanetoshi@gmail.com> | 2012-11-05 05:38:12 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-11-21 10:19:11 -0500 |
commit | 76705fe8e1e173c9512a0fd638a1ed6356890b28 (patch) | |
tree | e9d995a228dd147b4a360a19c04105d79d66dd67 | |
parent | 77f0773804ca49e3ed9075063ce7d954cafa49af (diff) |
[media] staging/media: Use dev_ or pr_ printks in go7007/wis-saa7113.c
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>
-rw-r--r-- | drivers/staging/media/go7007/wis-saa7113.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/media/go7007/wis-saa7113.c b/drivers/staging/media/go7007/wis-saa7113.c index 5c1c7c84f16e..8810c1e6e1ed 100644 --- a/drivers/staging/media/go7007/wis-saa7113.c +++ b/drivers/staging/media/go7007/wis-saa7113.c | |||
@@ -281,12 +281,12 @@ static int wis_saa7113_probe(struct i2c_client *client, | |||
281 | dec->hue = 0; | 281 | dec->hue = 0; |
282 | i2c_set_clientdata(client, dec); | 282 | i2c_set_clientdata(client, dec); |
283 | 283 | ||
284 | printk(KERN_DEBUG | 284 | dev_dbg(&client->dev, |
285 | "wis-saa7113: initializing SAA7113 at address %d on %s\n", | 285 | "wis-saa7113: initializing SAA7113 at address %d on %s\n", |
286 | client->addr, adapter->name); | 286 | client->addr, adapter->name); |
287 | 287 | ||
288 | if (write_regs(client, initial_registers) < 0) { | 288 | if (write_regs(client, initial_registers) < 0) { |
289 | printk(KERN_ERR | 289 | dev_err(&client->dev, |
290 | "wis-saa7113: error initializing SAA7113\n"); | 290 | "wis-saa7113: error initializing SAA7113\n"); |
291 | kfree(dec); | 291 | kfree(dec); |
292 | return -ENODEV; | 292 | return -ENODEV; |