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.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -329,7 +329,6 @@ struct max77620_chip { · 328 unmodified lines | |||
| 329 | struct regmap *rmap; | 329 | struct regmap *rmap; |
| 330 | 330 | ||
| 331 | int chip_irq; | 331 | int chip_irq; |
| 332 | int irq_base; | ||
| 333 | 332 | ||
| 334 | /* chip id */ | 333 | /* chip id */ |
| 335 | enum max77620_chip_id chip_id; | 334 | enum max77620_chip_id chip_id; |