[PATCH 2/2] state: Fix Kconfig dependencies

Sascha Hauer s.hauer at pengutronix.de
Tue Apr 26 03:29:21 PDT 2016


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 at pengutronix.de>
---
 common/Kconfig       | 1 -
 drivers/misc/Kconfig | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/Kconfig b/common/Kconfig
index 8f7bb02..205ea9a 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -775,7 +775,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
-- 
2.8.0.rc3




More information about the barebox mailing list