i2c: add i2c_trylock_bus wrapper, use it
[cascardo/linux.git] / drivers / i2c / busses / i2c-octeon.c
index 30ae351..b75d2da 100644 (file)
@@ -1213,10 +1213,8 @@ static int octeon_i2c_probe(struct platform_device *pdev)
        platform_set_drvdata(pdev, i2c);
 
        result = i2c_add_adapter(&i2c->adap);
-       if (result < 0) {
-               dev_err(i2c->dev, "failed to add adapter\n");
+       if (result < 0)
                goto out;
-       }
        dev_info(i2c->dev, "probed\n");
        return 0;