Skip to content

Commit

Permalink
[media] Staging/media: Use dev_ printks in go7007/wis-ov7640.c
Browse files Browse the repository at this point in the history
fixed below checkpatch warnings.
- WARNING: Prefer netdev_dbg(netdev, ... then dev_dbg(dev, ... then pr_debug(...  to printk(KERN_DEBUG ...
- WARNING: Prefer netdev_err(netdev, ... then dev_err(dev, ... then pr_err(...  to printk(KERN_ERR ...

Signed-off-by: YAMANE Toshiaki <yamanetoshi@gmail.com>
Tested-by: Peter Senna Tschudin <peter.senna@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
YAMANE Toshiaki authored and Mauro Carvalho Chehab committed Nov 21, 2012
1 parent b07d650 commit b3ccce3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/media/go7007/wis-ov7640.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ static int wis_ov7640_probe(struct i2c_client *client,

client->flags = I2C_CLIENT_SCCB;

printk(KERN_DEBUG
dev_dbg(&client->dev,
"wis-ov7640: initializing OV7640 at address %d on %s\n",
client->addr, adapter->name);

if (write_regs(client, initial_registers) < 0) {
printk(KERN_ERR "wis-ov7640: error initializing OV7640\n");
dev_err(&client->dev, "wis-ov7640: error initializing OV7640\n");
return -ENODEV;
}

Expand Down

0 comments on commit b3ccce3

Please sign in to comment.