Commit b3ccce38 authored by YAMANE Toshiaki's avatar YAMANE Toshiaki Committed by Mauro Carvalho Chehab

[media] Staging/media: Use dev_ printks in go7007/wis-ov7640.c

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: default avatarYAMANE Toshiaki <yamanetoshi@gmail.com>
Tested-by: default avatarPeter Senna Tschudin <peter.senna@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent b07d6508
...@@ -59,12 +59,12 @@ static int wis_ov7640_probe(struct i2c_client *client, ...@@ -59,12 +59,12 @@ static int wis_ov7640_probe(struct i2c_client *client,
client->flags = I2C_CLIENT_SCCB; client->flags = I2C_CLIENT_SCCB;
printk(KERN_DEBUG dev_dbg(&client->dev,
"wis-ov7640: initializing OV7640 at address %d on %s\n", "wis-ov7640: initializing OV7640 at address %d on %s\n",
client->addr, adapter->name); client->addr, adapter->name);
if (write_regs(client, initial_registers) < 0) { 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; return -ENODEV;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment