Skip to content

Commit 531f47f

Browse files
rddunlapchanwoochoi
authored andcommitted
extcon: max14526: depends on I2C to prevent build warning/errors
Make EXTCON_MAX14526 depend on I2C to address a kconfig warning and subsequent build errors: WARNING: unmet direct dependencies detected for REGMAP_I2C Depends on [m]: I2C [=m] Selected by [y]: - EXTCON_MAX14526 [=y] && EXTCON [=y] ld: vmlinux.o: in function `max14526_driver_init': extcon-max14526.c:(.init.text+0x77b0e): undefined reference to `i2c_register_driver' ld: vmlinux.o: in function `max14526_driver_exit': extcon-max14526.c:(.exit.text+0x467c): undefined reference to `i2c_del_driver' Fixes: 145af3d ("extcon: Add basic support for Maxim MAX14526 MUIC") Signed-off-by: Randy Dunlap <[email protected]> Signed-off-by: Chanwoo Choi <[email protected]> Link: https://lore.kernel.org/lkml/[email protected]/
1 parent 67c7461 commit 531f47f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/extcon/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ config EXTCON_MAX8997
136136

137137
config EXTCON_MAX14526
138138
tristate "Maxim MAX14526 EXTCON Support"
139+
depends on I2C
139140
select IRQ_DOMAIN
140141
select REGMAP_I2C
141142
help

0 commit comments

Comments
 (0)