Commit 541e4095 authored by Keerthy's avatar Keerthy Committed by Bartosz Golaszewski

gpio: davinci: silence error prints in case of EPROBE_DEFER

Silence error prints in case of EPROBE_DEFER. This avoids
multiple/duplicate defer prints during boot.

Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarKeerthy <j-keerthy@ti.com>
Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
parent fec88ab0
...@@ -238,6 +238,7 @@ static int davinci_gpio_probe(struct platform_device *pdev) ...@@ -238,6 +238,7 @@ static int davinci_gpio_probe(struct platform_device *pdev)
for (i = 0; i < nirq; i++) { for (i = 0; i < nirq; i++) {
chips->irqs[i] = platform_get_irq(pdev, i); chips->irqs[i] = platform_get_irq(pdev, i);
if (chips->irqs[i] < 0) { if (chips->irqs[i] < 0) {
if (chips->irqs[i] != -EPROBE_DEFER)
dev_info(dev, "IRQ not populated, err = %d\n", dev_info(dev, "IRQ not populated, err = %d\n",
chips->irqs[i]); chips->irqs[i]);
return chips->irqs[i]; return chips->irqs[i];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment