]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: pxa: Avoid a warning when gpio0 and gpio1 IRQS are not there
authorLubomir Rintel <lkundrak@v3.sk>
Tue, 28 Jan 2020 21:08:45 +0000 (22:08 +0100)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 10 Feb 2020 09:50:58 +0000 (10:50 +0100)
commitf92045b2465bad51c33250a1421ca712019c1cc8
tree0c7fc55e3220f7e07488d6a0611be869f384e47e
parent900abd43b6d837ba70928a9ee9599ba3be1d2fb6
gpio: pxa: Avoid a warning when gpio0 and gpio1 IRQS are not there

Not all platforms use those. Let's use
platform_get_irq_byname_optional() instead platform_get_irq_byname() so
that we avoid a useless warning:

  [    1.359455] pxa-gpio d4019000.gpio: IRQ gpio0 not found
  [    1.359583] pxa-gpio d4019000.gpio: IRQ gpio1 not found

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpio-pxa.c