Commit 00774281 authored by Shubhrajyoti Datta's avatar Shubhrajyoti Datta Committed by Bartosz Golaszewski
Browse files

gpio: zynq: Remove error prints in EPROBE_DEFER



In case of probe is deferred do not print the errors.

Signed-off-by: default avatarShubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
parent 73c612fe
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -930,6 +930,7 @@ static int zynq_gpio_probe(struct platform_device *pdev)
	/* Retrieve GPIO clock */
	gpio->clk = devm_clk_get(&pdev->dev, NULL);
	if (IS_ERR(gpio->clk)) {
		if (PTR_ERR(gpio->clk) != -EPROBE_DEFER)
			dev_err(&pdev->dev, "input clock not found.\n");
		return PTR_ERR(gpio->clk);
	}