mfd: max77620: Do not allocate IRQs upfront
authorThierry Reding <treding@nvidia.com>
Wed, 2 Oct 2019 14:43:18 +0000 (16:43 +0200)
committerLee Jones <lee.jones@linaro.org>
Mon, 11 Nov 2019 08:45:02 +0000 (08:45 +0000)
commit7f0e60c751dc7252276230c7f8def447ffc0af4e
treeb48ed8047a04867b839b8007d45ee40bf2ca8878
parentf5b4c8b45d937a94302ba135c9909423d89b0834
mfd: 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>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/max77620.c
include/linux/mfd/max77620.h