hwspinlock/core: simplify Kconfig

Simplify hwspinlock's Kconfig by making the global CONFIG_HWSPINLOCK
entry invisible; users will just select it when needed.

This also prepares the ground for adding hwspinlock support for other
platforms (the 'depends on ARCH_OMAP4' was rather hideous, and while
we're at it, a dedicated menu is added).

Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
This commit is contained in:
Ohad Ben-Cohen 2011-09-04 23:19:51 +03:00
parent b6fd41e29d
commit 315d8f5ccd

View File

@ -2,22 +2,20 @@
# Generic HWSPINLOCK framework # Generic HWSPINLOCK framework
# #
# HWSPINLOCK always gets selected by whoever wants it.
config HWSPINLOCK config HWSPINLOCK
tristate "Generic Hardware Spinlock framework" tristate
depends on ARCH_OMAP4
help
Say y here to support the generic hardware spinlock framework.
You only need to enable this if you have hardware spinlock module
on your system (usually only relevant if your system has remote slave
coprocessors).
If unsure, say N. menu "Hardware Spinlock drivers"
config HWSPINLOCK_OMAP config HWSPINLOCK_OMAP
tristate "OMAP Hardware Spinlock device" tristate "OMAP Hardware Spinlock device"
depends on HWSPINLOCK && ARCH_OMAP4 depends on ARCH_OMAP4
select HWSPINLOCK
help help
Say y here to support the OMAP Hardware Spinlock device (firstly Say y here to support the OMAP Hardware Spinlock device (firstly
introduced in OMAP4). introduced in OMAP4).
If unsure, say N. If unsure, say N.
endmenu