i2c: busses: remove duplicate dev_err()
[linux-block.git] / drivers / i2c / busses / i2c-omap.c
index 71b4637c86b7915a1bbd02389bc2f4edebdb73bb..175c590b93b76cbd72b8270ced91a78dad14ddae 100644 (file)
@@ -1365,10 +1365,8 @@ omap_i2c_probe(struct platform_device *pdev)
        u16 minor, major;
 
        irq = platform_get_irq(pdev, 0);
-       if (irq < 0) {
-               dev_err(&pdev->dev, "no irq resource?\n");
+       if (irq < 0)
                return irq;
-       }
 
        omap = devm_kzalloc(&pdev->dev, sizeof(struct omap_i2c_dev), GFP_KERNEL);
        if (!omap)