diff options
author | Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com> | 2020-01-10 09:25:24 +0530 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2020-01-15 13:46:11 +0100 |
commit | 783e998653b430a159f83552fa263f57bf8e2055 (patch) | |
tree | 6c1fc9d3ecde98239d6bf5de63c4c291e8ff262e /drivers/pinctrl | |
parent | a790269d5c2cc97a73fb3abec7e5e4305b93777a (diff) | |
download | linux-783e998653b430a159f83552fa263f57bf8e2055.tar.gz linux-783e998653b430a159f83552fa263f57bf8e2055.tar.bz2 linux-783e998653b430a159f83552fa263f57bf8e2055.zip |
pinctrl: iproc: Use platform_get_irq_optional() to avoid error message
Use platform_get_irq_optional() instead of platform_get_irq() to avoid
below error message during probe:
[ 0.589121] iproc-gpio 66424800.gpio: IRQ index 0 not found
Signed-off-by: Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>
Link: https://lore.kernel.org/r/20200110035524.23511-1-rayagonda.kokatanur@broadcom.com
Reviewed-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r-- | drivers/pinctrl/bcm/pinctrl-iproc-gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/bcm/pinctrl-iproc-gpio.c b/drivers/pinctrl/bcm/pinctrl-iproc-gpio.c index aa9b5ba1bf38..25166217c3e0 100644 --- a/drivers/pinctrl/bcm/pinctrl-iproc-gpio.c +++ b/drivers/pinctrl/bcm/pinctrl-iproc-gpio.c @@ -849,7 +849,7 @@ static int iproc_gpio_probe(struct platform_device *pdev) "gpio-ranges"); /* optional GPIO interrupt support */ - irq = platform_get_irq(pdev, 0); + irq = platform_get_irq_optional(pdev, 0); if (irq > 0) { struct irq_chip *irqc; struct gpio_irq_chip *girq; |