mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
gpio: davinci: silence error prints in case of EPROBE_DEFER
commit 541e4095f3 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: Keerthy <j-keerthy@ti.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
c947cf3e95
commit
dd5994ab1f
@@ -222,8 +222,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];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user