From: William Douglas <[email protected]>

Change messages from err to debug or info.

Remove extra messages that shouldn't be there and provide
no benefit.
Signed-off-by: William Douglas <[email protected]>
---
 .../mrstci/mrstaptina5140soc/mrstaptina5140soc.c   |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/drivers/staging/mrstci/mrstaptina5140soc/mrstaptina5140soc.c 
b/drivers/staging/mrstci/mrstaptina5140soc/mrstaptina5140soc.c
index b239885..a17d386 100644
--- a/drivers/staging/mrstci/mrstaptina5140soc/mrstaptina5140soc.c
+++ b/drivers/staging/mrstci/mrstaptina5140soc/mrstaptina5140soc.c
@@ -1390,15 +1390,14 @@ static int a5140soc_detect(struct i2c_client *client)
        a5140soc_read_reg(client, MISENSOR_16BIT,
                (u32)A5140SOC_PID, &retvalue);
 
-       pr_err("a5140soc_detect: value returned: 0x%x\n", retvalue);
+       pr_debug("a5140soc_detect: value returned: 0x%x\n", retvalue);
        if (retvalue != ASOC5140_MOD_ID) {
-               pr_err("a5140soc_detect failed: client->addr = %x",
+               pr_info("a5140soc_detect failed: client->addr = %x",
                        client->addr);
                return -ENODEV;
        }
 
 
-       printk(KERN_INFO "Init a5140soc sensor success\n");
        return 0;
 }
 
@@ -1423,10 +1422,8 @@ static int a5140soc_probe(struct i2c_client *client,
        }
 
        ret = a5140soc_detect(client);
-       if (ret) {
-               pr_err("a5140soc_probe: error a5140soc_detect failed");
+       if (ret)
                goto out_free;
-       }
 
        sd = &info->sd;
        v4l2_i2c_subdev_init(sd, client, &a5140soc_ops);
-- 
1.7.2.3

_______________________________________________
MeeGo-kernel mailing list
[email protected]
http://lists.meego.com/listinfo/meego-kernel

Reply via email to