aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorOoi, Joyce <joyce.ooi@intel.com>2020-01-09 00:16:20 +0800
committerBartosz Golaszewski <bgolaszewski@baylibre.com>2020-01-09 10:35:05 +0100
commit1e4d149e901769fcde71be039227d184c6e4fda9 (patch)
tree4a605f1e5f5406a42afe39b62f13db6cc147d92e /drivers/gpio
parentgpiolib: use gpiochip_get_desc() in gpio_ioctl() (diff)
downloadlinux-dev-1e4d149e901769fcde71be039227d184c6e4fda9.tar.xz
linux-dev-1e4d149e901769fcde71be039227d184c6e4fda9.zip
gpio: altera: change to platform_get_irq_optional to avoid false-positive error
This patch switches to platform_get_irq_optional() from platform_get_irq() as it causes a false-positive error such as 'IRQ index 0 not found' when IRQ is not used. The IRQ usage is optional in this gpio-altera driver, so the error log is undesirable. Signed-off-by: Ooi, Joyce <joyce.ooi@intel.com> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpio-altera.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-altera.c b/drivers/gpio/gpio-altera.c
index 9f2e6b04c361..cc4ba71e4fe3 100644
--- a/drivers/gpio/gpio-altera.c
+++ b/drivers/gpio/gpio-altera.c
@@ -266,7 +266,7 @@ static int altera_gpio_probe(struct platform_device *pdev)
altera_gc->mmchip.gc.owner = THIS_MODULE;
altera_gc->mmchip.gc.parent = &pdev->dev;
- altera_gc->mapped_irq = platform_get_irq(pdev, 0);
+ altera_gc->mapped_irq = platform_get_irq_optional(pdev, 0);
if (altera_gc->mapped_irq < 0)
goto skip_irq;