Skip to content

Commit 7e7e154

Browse files
rddunlapjwrdegoede
authored andcommitted
platform: x86: MLX_PLATFORM: select REGMAP instead of depending on it
REGMAP is a hidden (not user visible) symbol. Users cannot set it directly thru "make *config", so drivers should select it instead of depending on it if they need it. Consistently using "select" or "depends on" can also help reduce Kconfig circular dependency issues. Therefore, change the use of "depends on REGMAP" to "select REGMAP". Fixes: ef0f622 ("platform/x86: mlx-platform: Add physical bus number auto detection") Signed-off-by: Randy Dunlap <[email protected]> Cc: Vadim Pasternak <[email protected]> Cc: Darren Hart <[email protected]> Cc: Hans de Goede <[email protected]> Cc: Mark Gross <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Hans de Goede <[email protected]> Reviewed-by: Hans de Goede <[email protected]>
1 parent 03f5eb3 commit 7e7e154

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/platform/x86/Kconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,8 @@ config SERIAL_MULTI_INSTANTIATE
955955

956956
config MLX_PLATFORM
957957
tristate "Mellanox Technologies platform support"
958-
depends on I2C && REGMAP
958+
depends on I2C
959+
select REGMAP
959960
help
960961
This option enables system support for the Mellanox Technologies
961962
platform. The Mellanox systems provide data center networking

0 commit comments

Comments
 (0)