Commit 193d0a51 authored by Jean-François Moine's avatar Jean-François Moine Committed by Mauro Carvalho Chehab

[media] gspca - ov519: Add more information about probe problems

The error messages in stable kernel releases must be output by 'pr_err'.
Signed-off-by: default avatarJean-François Moine <moinejf@free.fr>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 4d1b58b8
...@@ -2804,7 +2804,7 @@ static void ov7xx0_configure(struct sd *sd) ...@@ -2804,7 +2804,7 @@ static void ov7xx0_configure(struct sd *sd)
/* add OV7670 here /* add OV7670 here
* it appears to be wrongly detected as a 7610 by default */ * it appears to be wrongly detected as a 7610 by default */
if (rc < 0) { if (rc < 0) {
PDEBUG(D_ERR, "Error detecting sensor type"); pr_err("Error detecting sensor type\n");
return; return;
} }
if ((rc & 3) == 3) { if ((rc & 3) == 3) {
...@@ -2832,12 +2832,12 @@ static void ov7xx0_configure(struct sd *sd) ...@@ -2832,12 +2832,12 @@ static void ov7xx0_configure(struct sd *sd)
/* try to read product id registers */ /* try to read product id registers */
high = i2c_r(sd, 0x0a); high = i2c_r(sd, 0x0a);
if (high < 0) { if (high < 0) {
PDEBUG(D_ERR, "Error detecting camera chip PID"); pr_err("Error detecting camera chip PID\n");
return; return;
} }
low = i2c_r(sd, 0x0b); low = i2c_r(sd, 0x0b);
if (low < 0) { if (low < 0) {
PDEBUG(D_ERR, "Error detecting camera chip VER"); pr_err("Error detecting camera chip VER\n");
return; return;
} }
if (high == 0x76) { if (high == 0x76) {
...@@ -2863,7 +2863,7 @@ static void ov7xx0_configure(struct sd *sd) ...@@ -2863,7 +2863,7 @@ static void ov7xx0_configure(struct sd *sd)
sd->sensor = SEN_OV7660; sd->sensor = SEN_OV7660;
break; break;
default: default:
PDEBUG(D_PROBE, "Unknown sensor: 0x76%x", low); pr_err("Unknown sensor: 0x76%02x\n", low);
return; return;
} }
} else { } else {
...@@ -2884,7 +2884,7 @@ static void ov6xx0_configure(struct sd *sd) ...@@ -2884,7 +2884,7 @@ static void ov6xx0_configure(struct sd *sd)
/* Detect sensor (sub)type */ /* Detect sensor (sub)type */
rc = i2c_r(sd, OV7610_REG_COM_I); rc = i2c_r(sd, OV7610_REG_COM_I);
if (rc < 0) { if (rc < 0) {
PDEBUG(D_ERR, "Error detecting sensor type"); pr_err("Error detecting sensor type\n");
return; return;
} }
......
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