i2c: remove DEFINE_PCI_DEVICE_TABLE macro
[platform/adaptation/renesas_rcar/renesas_kernel.git] / drivers / i2c / busses / i2c-tegra.c
index 9704537..8f6f1e4 100644 (file)
@@ -732,10 +732,8 @@ static int tegra_i2c_probe(struct platform_device *pdev)
        }
 
        i2c_dev = devm_kzalloc(&pdev->dev, sizeof(*i2c_dev), GFP_KERNEL);
-       if (!i2c_dev) {
-               dev_err(&pdev->dev, "Could not allocate struct tegra_i2c_dev");
+       if (!i2c_dev)
                return -ENOMEM;
-       }
 
        i2c_dev->base = base;
        i2c_dev->div_clk = div_clk;