i2c: don't print error when adding adapter fails
[deliverable/linux.git] / drivers / i2c / busses / i2c-st.c
index 944ec4205084878cd951a3a2f72451ee6567d866..1371547ce1a3a811dae12cdea2bd0592ec4342f7 100644 (file)
@@ -874,10 +874,8 @@ static int st_i2c_probe(struct platform_device *pdev)
        init_completion(&i2c_dev->complete);
 
        ret = i2c_add_adapter(adap);
-       if (ret) {
-               dev_err(&pdev->dev, "Failed to add adapter\n");
+       if (ret)
                return ret;
-       }
 
        platform_set_drvdata(pdev, i2c_dev);
 
This page took 0.027413 seconds and 5 git commands to generate.