Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b20d3864 authored by Alexey Brodkin's avatar Alexey Brodkin Committed by Wolfram Sang
Browse files

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: default avatarAlexey Brodkin <abrodkin@synopsys.com>
Acked-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: default avatarChristian Ruppert <christian.ruppert@alitech.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 8ce795cb
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line Diff line number Diff line
@@ -143,10 +143,8 @@ static int dw_i2c_probe(struct platform_device *pdev)
	u32 clk_freq, ht = 0;
	u32 clk_freq, ht = 0;


	irq = platform_get_irq(pdev, 0);
	irq = platform_get_irq(pdev, 0);
	if (irq < 0) {
	if (irq < 0)
		dev_err(&pdev->dev, "no irq resource?\n");
		return irq;
		return irq; /* -ENXIO */
	}


	dev = devm_kzalloc(&pdev->dev, sizeof(struct dw_i2c_dev), GFP_KERNEL);
	dev = devm_kzalloc(&pdev->dev, sizeof(struct dw_i2c_dev), GFP_KERNEL);
	if (!dev)
	if (!dev)