mfd: max77650: Select REGMAP_IRQ in Kconfig
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Fri, 3 Jan 2020 11:41:56 +0000 (12:41 +0100)
committerLee Jones <lee.jones@linaro.org>
Fri, 24 Jan 2020 07:33:58 +0000 (07:33 +0000)
commitcb7a374a5e7a5af3f8c839f74439193add6d0589
tree2968f0eef27744cb5f8f663d25e4a82f3d19cf15
parentdc91c3b6fe66a13ac76f6cb3b2100c0779cd3350
mfd: max77650: Select REGMAP_IRQ in Kconfig

MAX77650 MFD driver uses regmap_irq API but doesn't select the required
REGMAP_IRQ option in Kconfig. This can cause the following build error
if regmap irq is not enabled implicitly by someone else:

    ld: drivers/mfd/max77650.o: in function `max77650_i2c_probe':
    max77650.c:(.text+0xcb): undefined reference to `devm_regmap_add_irq_chip'
    ld: max77650.c:(.text+0xdb): undefined reference to `regmap_irq_get_domain'
    make: *** [Makefile:1079: vmlinux] Error 1

Fix it by adding the missing option.

Fixes: d0f60334500b ("mfd: Add new driver for MAX77650 PMIC")
Reported-by: Paul Gazzillo <paul@pgazz.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/Kconfig