summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-04-26 11:40:14 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2016-04-28 16:43:14 +0200
commitb61d301cf65d861cc4b57d2ff27127a6dbe59972 (patch)
tree49c911013c656ae490723e5619f2dddcfd1a1fd4
parent5e94c658e40961c4a785711e225a4007c4992431 (diff)
downloadbarebox-b61d301cf65d861cc4b57d2ff27127a6dbe59972.tar.gz
state: Fix Kconfig dependencies
State support does not need OF_BAREBOX_DRIVERS and never did, so drop the dependency there. It's the state driver which needs of_find_path(), since this symbol now is always enabled when OF is enabled, we don't have to add the dependency to the state driver, but instead can depend on OFDEVICE. We could depend on OF instead, but compiling the state driver without OFDEVICE makes no sense. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--common/Kconfig1
-rw-r--r--drivers/misc/Kconfig1
2 files changed, 1 insertions, 1 deletions
diff --git a/common/Kconfig b/common/Kconfig
index 7c09e8c..309d264 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -769,7 +769,6 @@ config POLLER
config STATE
bool "generic state infrastructure"
- depends on OF_BAREBOX_DRIVERS
select ENVIRONMENT_VARIABLES
select OFTREE
select PARAMETER
diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
index 7a5b146..6640a70 100644
--- a/drivers/misc/Kconfig
+++ b/drivers/misc/Kconfig
@@ -17,6 +17,7 @@ config SRAM
config STATE_DRV
tristate "state driver"
+ depends on OFDEVICE
depends on STATE
endmenu