mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
![Arnd Bergmann](/assets/img/avatar_default.png)
If we select I2C_BOARDINFO and I2C is disabled, we get a harmless Kconfig warning: warning: (MACH_DOVE_DB && MACH_DB88F5281 && MACH_RD88F5182 && MACH_RD88F5182_DT && MACH_KUROBOX_PRO && MACH_DNS323 && MACH_LINKSTATION_PRO && MACH_LINKSTATION_LSCHL && MACH_LINKSTATION_LS_HGL && MACH_NET2BIG) selects I2C_BOARDINFO which has unmet direct dependencies (I2C) Making the select itself conditional avoids the warning and makes the kernel slightly smaller as the compiler will be able to drop the unused board info. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Acked-by: Jason Cooper <jason@lakedaemon.net> Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
25 lines
473 B
Text
25 lines
473 B
Text
if ARCH_DOVE
|
|
|
|
menu "Marvell Dove Implementations"
|
|
|
|
config DOVE_LEGACY
|
|
bool
|
|
|
|
config MACH_DOVE_DB
|
|
bool "Marvell DB-MV88AP510 Development Board"
|
|
select DOVE_LEGACY
|
|
select I2C_BOARDINFO if I2C
|
|
help
|
|
Say 'Y' here if you want your kernel to support the
|
|
Marvell DB-MV88AP510 Development Board.
|
|
|
|
config MACH_CM_A510
|
|
bool "CompuLab CM-A510 Board"
|
|
select DOVE_LEGACY
|
|
help
|
|
Say 'Y' here if you want your kernel to support the
|
|
CompuLab CM-A510 Board.
|
|
|
|
endmenu
|
|
|
|
endif
|