summaryrefslogtreecommitdiffstats
path: root/drivers/gpio
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:27:21 +0200
commit0a4ea95469bf48b7ab2a85e6f10f6bd318e599e2 (patch)
tree72cd067cfebfbc6b4a7fad4e0e00810317163efa /drivers/gpio
parent594a0e0d11b86d84a67b683a4cbe0bed17fa00b0 (diff)
downloadlinux-stable-0a4ea95469bf48b7ab2a85e6f10f6bd318e599e2.tar.gz
linux-stable-0a4ea95469bf48b7ab2a85e6f10f6bd318e599e2.tar.bz2
linux-stable-0a4ea95469bf48b7ab2a85e6f10f6bd318e599e2.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>
Diffstat (limited to 'drivers/gpio')
-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 3bbf5804bd11..de4da2ed7955 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];
}
}