diff options
author | Chris Packham <chris.packham@alliedtelesis.co.nz> | 2020-03-13 16:42:44 +1300 |
---|---|---|
committer | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2020-03-25 09:50:45 +0100 |
commit | 525b0858ff2fdb78defec2d4d6d63baaa423d5fd (patch) | |
tree | 882353a22f22212fdc83d78b6641072be997ad37 /drivers/gpio | |
parent | 6876ca311bfca5d7cae30c4b529aeb9449c072eb (diff) | |
download | linux-525b0858ff2fdb78defec2d4d6d63baaa423d5fd.tar.gz linux-525b0858ff2fdb78defec2d4d6d63baaa423d5fd.tar.bz2 linux-525b0858ff2fdb78defec2d4d6d63baaa423d5fd.zip |
gpio: mvebu: avoid error message for optional IRQ
platform_get_irq() will generate an error message if the requested irq
is not present
mvebu-gpio f1010140.gpio: IRQ index 3 not found
use platform_get_irq_optional() to avoid the error message being
generated.
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpio-mvebu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-mvebu.c b/drivers/gpio/gpio-mvebu.c index d2b999c7987f..3c9f4fb3d5a2 100644 --- a/drivers/gpio/gpio-mvebu.c +++ b/drivers/gpio/gpio-mvebu.c @@ -1247,7 +1247,7 @@ static int mvebu_gpio_probe(struct platform_device *pdev) * pins. */ for (i = 0; i < 4; i++) { - int irq = platform_get_irq(pdev, i); + int irq = platform_get_irq_optional(pdev, i); if (irq < 0) continue; |