]> asedeno.scripts.mit.edu Git - linux.git/commit
gpio: max77620: Do not allocate IRQs upfront
authorThierry Reding <treding@nvidia.com>
Wed, 2 Oct 2019 12:28:24 +0000 (14:28 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 4 Oct 2019 21:59:44 +0000 (23:59 +0200)
commit704355db127e4bcc96c40fa3eeff5450f1a14d13
treede74af322c211df9472a0ad91a0965b931e8e58b
parent6ad94e957c3c9914c3c2e3602ae2a29e91ba1906
gpio: max77620: Do not allocate IRQs upfront

regmap_add_irq_chip() will try to allocate all of the IRQ descriptors
upfront if passed a non-zero irq_base parameter. However, the intention
is to allocate IRQ descriptors on an as-needed basis if possible. Pass 0
instead of -1 to fix that use-case.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20191002122825.3948322-2-thierry.reding@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-max77620.c