aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-designware-platdrv.c
diff options
context:
space:
mode:
authorAlexey Brodkin <Alexey.Brodkin@synopsys.com>2015-03-09 05:03:12 -0400
committerWolfram Sang <wsa@the-dreams.de>2015-03-15 06:23:05 -0400
commitb20d386485e25934aef8aa24cbc8c2f51a2cb9cf (patch)
tree84f06cd5c93cf0d0985a94efada1f087e3c1c6f1 /drivers/i2c/busses/i2c-designware-platdrv.c
parent8ce795cb0c6b8214779c4a220781a26f096e4442 (diff)
i2c: designware: Suppress error message if platform_get_irq() < 0
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>
Diffstat (limited to 'drivers/i2c/busses/i2c-designware-platdrv.c')
-rw-r--r--drivers/i2c/busses/i2c-designware-platdrv.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/i2c/busses/i2c-designware-platdrv.c b/drivers/i2c/busses/i2c-designware-platdrv.c
index c270f5f9a8f9..fa4e2b521f0d 100644
--- a/drivers/i2c/busses/i2c-designware-platdrv.c
+++ b/drivers/i2c/busses/i2c-designware-platdrv.c
@@ -143,10 +143,8 @@ static int dw_i2c_probe(struct platform_device *pdev)
143 u32 clk_freq, ht = 0; 143 u32 clk_freq, ht = 0;
144 144
145 irq = platform_get_irq(pdev, 0); 145 irq = platform_get_irq(pdev, 0);
146 if (irq < 0) { 146 if (irq < 0)
147 dev_err(&pdev->dev, "no irq resource?\n"); 147 return irq;
148 return irq; /* -ENXIO */
149 }
150 148
151 dev = devm_kzalloc(&pdev->dev, sizeof(struct dw_i2c_dev), GFP_KERNEL); 149 dev = devm_kzalloc(&pdev->dev, sizeof(struct dw_i2c_dev), GFP_KERNEL);
152 if (!dev) 150 if (!dev)