linux/arch/arm/mach-dove
Arnd Bergmann 993e221518 ARM: orion: only select I2C_BOARDINFO when using I2C
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>
2016-02-25 15:37:16 +01:00
..
include/mach ARM: dove: convert legacy dove to PMU support 2015-12-08 13:23:14 +01:00
Kconfig ARM: orion: only select I2C_BOARDINFO when using I2C 2016-02-25 15:37:16 +01:00
Makefile ARM: mvebu: move DT Dove to MVEBU 2014-03-04 04:13:48 +00:00
Makefile.boot ARM: kirkwood: move new dtbs to common Makefile 2012-09-22 14:24:00 -07:00
cm-a510.c ARM: orion: use SPARSE_IRQ everywhere 2015-12-07 18:17:07 +01:00
common.c ARM: dove: convert legacy dove to PMU support 2015-12-08 13:23:14 +01:00
common.h reboot: arm: change reboot_mode to use enum reboot_mode 2013-07-09 10:33:29 -07:00
dove-db-setup.c ARM: orion: use SPARSE_IRQ everywhere 2015-12-07 18:17:07 +01:00
irq.c ARM: dove: convert legacy dove to PMU support 2015-12-08 13:23:14 +01:00
mpp.c ARM: dove: fix missing __init section of dove_mpp_gpio_mode 2013-07-25 15:22:17 +00:00
mpp.h ARM: dove: Consolidate mpp code with platform mpp. 2011-05-16 15:49:31 -04:00
pcie.c PCI: Cleanup control flow 2015-03-19 10:17:22 -05:00