* [PATCH] gpio: davinci: silence error prints in case of EPROBE_DEFER
@ 2019-07-08 8:49 Keerthy
2019-07-08 12:36 ` Bartosz Golaszewski
0 siblings, 1 reply; 2+ messages in thread
From: Keerthy @ 2019-07-08 8:49 UTC (permalink / raw)
To: linus.walleij, bgolaszewski; +Cc: linux-kernel, linux-gpio, t-kristo, j-keerthy
Silence error prints in case of EPROBE_DEFER. This avoids
multiple/duplicate defer prints during boot.
Signed-off-by: Keerthy <j-keerthy@ti.com>
---
drivers/gpio/gpio-davinci.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/gpio/gpio-davinci.c b/drivers/gpio/gpio-davinci.c
index fc494a84a29d..e0b025689625 100644
--- a/drivers/gpio/gpio-davinci.c
+++ b/drivers/gpio/gpio-davinci.c
@@ -238,8 +238,9 @@ static int davinci_gpio_probe(struct platform_device *pdev)
for (i = 0; i < nirq; i++) {
chips->irqs[i] = platform_get_irq(pdev, i);
if (chips->irqs[i] < 0) {
- dev_info(dev, "IRQ not populated, err = %d\n",
- chips->irqs[i]);
+ if (chips->irqs[i] != -EPROBE_DEFER)
+ dev_info(dev, "IRQ not populated, err = %d\n",
+ chips->irqs[i]);
return chips->irqs[i];
}
}
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] gpio: davinci: silence error prints in case of EPROBE_DEFER
2019-07-08 8:49 [PATCH] gpio: davinci: silence error prints in case of EPROBE_DEFER Keerthy
@ 2019-07-08 12:36 ` Bartosz Golaszewski
0 siblings, 0 replies; 2+ messages in thread
From: Bartosz Golaszewski @ 2019-07-08 12:36 UTC (permalink / raw)
To: Keerthy; +Cc: Linus Walleij, LKML, linux-gpio, Tero Kristo
pon., 8 lip 2019 o 10:48 Keerthy <j-keerthy@ti.com> napisał(a):
>
> Silence error prints in case of EPROBE_DEFER. This avoids
> multiple/duplicate defer prints during boot.
>
> Signed-off-by: Keerthy <j-keerthy@ti.com>
> ---
> drivers/gpio/gpio-davinci.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpio/gpio-davinci.c b/drivers/gpio/gpio-davinci.c
> index fc494a84a29d..e0b025689625 100644
> --- a/drivers/gpio/gpio-davinci.c
> +++ b/drivers/gpio/gpio-davinci.c
> @@ -238,8 +238,9 @@ static int davinci_gpio_probe(struct platform_device *pdev)
> for (i = 0; i < nirq; i++) {
> chips->irqs[i] = platform_get_irq(pdev, i);
> if (chips->irqs[i] < 0) {
> - dev_info(dev, "IRQ not populated, err = %d\n",
> - chips->irqs[i]);
> + if (chips->irqs[i] != -EPROBE_DEFER)
> + dev_info(dev, "IRQ not populated, err = %d\n",
> + chips->irqs[i]);
> return chips->irqs[i];
> }
> }
> --
> 2.17.1
>
Applied to fixes, thanks.
Bart
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-07-08 12:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-08 8:49 [PATCH] gpio: davinci: silence error prints in case of EPROBE_DEFER Keerthy
2019-07-08 12:36 ` Bartosz Golaszewski
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.