i2c: designware: Suppress error message if platform_get_irq() < 0
authorAlexey Brodkin <Alexey.Brodkin@synopsys.com>
Mon, 9 Mar 2015 09:03:12 +0000 (12:03 +0300)
committerWolfram Sang <wsa@the-dreams.de>
Sun, 15 Mar 2015 10:23:05 +0000 (11:23 +0100)
With -EPROBE_DEFER, this message is confusing and we hope for a
centralized printout in the future anyhow.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Christian Ruppert <christian.ruppert@alitech.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-designware-platdrv.c

index c270f5f9a8f9af3d3712bbd0f99874708875aa18..fa4e2b521f0d6f7b77951cf442aaa307a1b66109 100644 (file)
@@ -143,10 +143,8 @@ static int dw_i2c_probe(struct platform_device *pdev)
        u32 clk_freq, ht = 0;
 
        irq = platform_get_irq(pdev, 0);
-       if (irq < 0) {
-               dev_err(&pdev->dev, "no irq resource?\n");
-               return irq; /* -ENXIO */
-       }
+       if (irq < 0)
+               return irq;
 
        dev = devm_kzalloc(&pdev->dev, sizeof(struct dw_i2c_dev), GFP_KERNEL);
        if (!dev)