From: Alexey Brodkin <alexey.brod...@synopsys.com> With -EPROBE_DEFER, this message is confusing and we hope for a centralized printout in the future anyhow.
Signed-off-by: Alexey Brodkin <abrod...@synopsys.com> Acked-by: Mika Westerberg <mika.westerb...@linux.intel.com> Acked-by: Christian Ruppert <christian.rupp...@alitech.com> Signed-off-by: Wolfram Sang <w...@the-dreams.de> (cherry picked from commit b20d386485e25934aef8aa24cbc8c2f51a2cb9cf) Signed-off-by: Ng Wei Tee <wei.tee...@intel.com> --- drivers/i2c/busses/i2c-designware-platdrv.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/i2c/busses/i2c-designware-platdrv.c b/drivers/i2c/busses/i2c-designware-platdrv.c index c270f5f..fa4e2b5 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) 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) -- 1.7.9.5 -- _______________________________________________ linux-yocto mailing list linux-yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/linux-yocto