Skip to content

Commit

Permalink
mfd: max77650: Select REGMAP_IRQ in Kconfig
Browse files Browse the repository at this point in the history
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: d0f6033 ("mfd: Add new driver for MAX77650 PMIC")
Reported-by: Paul Gazzillo <[email protected]>
Signed-off-by: Bartosz Golaszewski <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
  • Loading branch information
brgl authored and Lee Jones committed Jan 24, 2020
1 parent dc91c3b commit cb7a374
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/mfd/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -758,6 +758,7 @@ config MFD_MAX77650
depends on OF || COMPILE_TEST
select MFD_CORE
select REGMAP_I2C
select REGMAP_IRQ
help
Say Y here to add support for Maxim Semiconductor MAX77650 and
MAX77651 Power Management ICs. This is the core multifunction
Expand Down

0 comments on commit cb7a374

Please sign in to comment.