Skip to content

Commit 315d8f5

Browse files
committed
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>
1 parent b6fd41e commit 315d8f5

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

‎drivers/hwspinlock/Kconfig‎

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,20 @@
22
# Generic HWSPINLOCK framework
33
#
44

5+
# HWSPINLOCK always gets selected by whoever wants it.
56
config HWSPINLOCK
6-
tristate "Generic Hardware Spinlock framework"
7-
depends on ARCH_OMAP4
8-
help
9-
Say y here to support the generic hardware spinlock framework.
10-
You only need to enable this if you have hardware spinlock module
11-
on your system (usually only relevant if your system has remote slave
12-
coprocessors).
7+
tristate
138

14-
If unsure, say N.
9+
menu "Hardware Spinlock drivers"
1510

1611
config HWSPINLOCK_OMAP
1712
tristate "OMAP Hardware Spinlock device"
18-
depends on HWSPINLOCK && ARCH_OMAP4
13+
depends on ARCH_OMAP4
14+
select HWSPINLOCK
1915
help
2016
Say y here to support the OMAP Hardware Spinlock device (firstly
2117
introduced in OMAP4).
2218

2319
If unsure, say N.
20+
21+
endmenu

0 commit comments

Comments
 (0)