Commit dfc0a1b1 authored by Keerthy's avatar Keerthy Committed by Greg Kroah-Hartman

gpio: davinci: silence error prints in case of EPROBE_DEFER

commit 541e4095 upstream.

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>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f39659f4
...@@ -242,6 +242,7 @@ static int davinci_gpio_probe(struct platform_device *pdev) ...@@ -242,6 +242,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