gpio: pl061: Warn when IRQ line has not been configured
authorAlexander Sverdlin <alexander.sverdlin@nokia.com>
Tue, 3 Mar 2020 09:28:28 +0000 (10:28 +0100)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 25 Mar 2020 08:50:45 +0000 (09:50 +0100)
commit1a555713ac9d169dbe43363aafe0633f2dc58daf
treea606c92ee6fb6651cd643bd6678dfbbd58beff31
parentf8c3cea834d27ad1a292f735ef092be7aaef1bba
gpio: pl061: Warn when IRQ line has not been configured

Existing (irq < 0) condition is always false because adev->irq has unsigned
type and contains 0 in case of failed irq_of_parse_and_map(). Up to now all
the mapping errors were silently ignored.

Seems that repairing this check would be backwards-incompatible and might
break the probe() for the implementations without IRQ support. Therefore
warn the user instead.

Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpio-pl061.c