Commit 69dc44bc authored by Shubhrajyoti Datta's avatar Shubhrajyoti Datta Committed by Wolfram Sang
Browse files

i2c: cadence: Fix error printing in case of defer



Do not print error in case of EPROBE_DEFER.

Signed-off-by: default avatarShubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent bbf967b2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -929,6 +929,7 @@ static int cdns_i2c_probe(struct platform_device *pdev)

	id->clk = devm_clk_get(&pdev->dev, NULL);
	if (IS_ERR(id->clk)) {
		if (PTR_ERR(id->clk) != -EPROBE_DEFER)
			dev_err(&pdev->dev, "input clock not found.\n");
		return PTR_ERR(id->clk);
	}