Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Staging: west bridge: Kconfig fix

This patch fixes the currently broken Kconfig for west bridge by
introducing a dependency on a valid HAL Layer for the driver build.

Signed-off-by: David Cross <david.cross@cypress.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

David Cross and committed by
Greg Kroah-Hartman
4ecea3c5 8be11ffc

+25 -6
+25 -6
drivers/staging/westbridge/Kconfig
··· 4 4 5 5 menuconfig WESTBRIDGE 6 6 tristate "West Bridge support" 7 - depends on HAS_IOMEM && BROKEN 7 + depends on WESTBRIDGE_HAL_SELECTED 8 8 help 9 9 This selects West Bridge Peripheral controller support. 10 10 ··· 12 12 13 13 menuconfig WESTBRIDGE_ASTORIA 14 14 bool "West Bridge Astoria support" 15 - depends on WESTBRIDGE != n 15 + depends on WESTBRIDGE != n && WESTBRIDGE_HAL_SELECTED 16 16 help 17 17 This option enables support for West Bridge Astoria 18 18 ··· 20 20 source "drivers/staging/westbridge/astoria/Kconfig" 21 21 endif #WESTBRIDGE_ASTORIA 22 22 23 - menuconfig MACH_OMAP3_WESTBRIDGE_AST_PNAND_HAL 24 - bool "WESTBRIDGE OMAP3430 Astoria PNAND HAL" 25 - depends on ARCH_OMAP3 && WESTBRIDGE_ASTORIA 23 + config WESTBRIDGE_HAL_SELECTED 24 + boolean 25 + 26 + choice 27 + prompt "West Bridge HAL" 26 28 help 27 - Include the OMAP3430 Linux Based HAL 29 + West Bridge HAL/processor interface to be used 30 + 31 + # 32 + # HAL Layers 33 + # 34 + 35 + config MACH_OMAP3_WESTBRIDGE_AST_PNAND_HAL 36 + bool "WESTBRIDGE OMAP3430 Astoria PNAND HAL" 37 + depends on ARCH_OMAP3 38 + select WESTBRIDGE_HAL_SELECTED 39 + help 40 + Include the OMAP3430 HAL for PNAND interface 41 + 42 + config MACH_NO_WESTBRIDGE 43 + bool "no West Bridge HAL selected" 44 + help 45 + Do not include any HAL layer(de-activates West Bridge option) 46 + endchoice 28 47 29 48 config WESTBRIDGE_DEBUG 30 49 bool "West Bridge debugging"