summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeerthy <j-keerthy@ti.com>2019-07-08 14:19:04 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-07-28 08:28:36 +0200
commitdfc0a1b1013076fa14eec2fcc453e1f94d6ee400 (patch)
tree48f2217759dda5442acf1c11202b21bb6ad5406a
parentf39659f4b3b4742310550a4225bfebf41117f378 (diff)
downloadlinux-stable-dfc0a1b1013076fa14eec2fcc453e1f94d6ee400.tar.gz
linux-stable-dfc0a1b1013076fa14eec2fcc453e1f94d6ee400.tar.bz2
linux-stable-dfc0a1b1013076fa14eec2fcc453e1f94d6ee400.zip
gpio: davinci: silence error prints in case of EPROBE_DEFER
commit 541e4095f388c196685685633c950cb9b97f8039 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>
-rw-r--r--drivers/gpio/gpio-davinci.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-davinci.c b/drivers/gpio/gpio-davinci.c
index 188b8e5c8e67..be34c672cf25 100644
--- a/drivers/gpio/gpio-davinci.c
+++ b/drivers/gpio/gpio-davinci.c
@@ -242,8 +242,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];
}
}