[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1577362338-28744-9-git-send-email-srinivas.neeli@xilinx.com>
Date: Thu, 26 Dec 2019 17:42:18 +0530
From: Srinivas Neeli <srinivas.neeli@...inx.com>
To: linus.walleij@...aro.org, bgolaszewski@...libre.com,
michal.simek@...inx.com, shubhrajyoti.datta@...inx.com
Cc: linux-gpio@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org, git@...inx.com
Subject: [PATCH 8/8] gpio: zynq: Remove error prints in EPROBE_DEFER
From: Shubhrajyoti Datta <shubhrajyoti.datta@...inx.com>
In case of probe is deferred do not print the errors.
Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@...inx.com>
Signed-off-by: Michal Simek <michal.simek@...inx.com>
---
drivers/gpio/gpio-zynq.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpio/gpio-zynq.c b/drivers/gpio/gpio-zynq.c
index 674416a40117..fa6093db30ee 100644
--- a/drivers/gpio/gpio-zynq.c
+++ b/drivers/gpio/gpio-zynq.c
@@ -930,7 +930,8 @@ 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)) {
- dev_err(&pdev->dev, "input clock not found.\n");
+ if (PTR_ERR(gpio->clk) != -EPROBE_DEFER)
+ dev_err(&pdev->dev, "input clock not found.\n");
return PTR_ERR(gpio->clk);
}
ret = clk_prepare_enable(gpio->clk);
--
2.7.4
Powered by blists - more mailing lists