From 6417572efa9107674ec106ae7e388178a92155fc Mon Sep 17 00:00:00 2001
From: Tom Rini <trini@konsulko.com>
Date: Tue, 8 May 2018 08:52:17 -0400
Subject: [PATCH] lib/Kconfig: Mark OF_LIBFDT_OVERLAY as depending on OF_LIBFDT

The overlay code is only useful when OF_LIBFDT is set, so mark it as
depending on that first.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
 lib/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/Kconfig b/lib/Kconfig
index 3fa1731a49..1590f7afa4 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -286,6 +286,7 @@ config OF_LIBFDT
 
 config OF_LIBFDT_OVERLAY
 	bool "Enable the FDT library overlay support"
+	depends on OF_LIBFDT
 	default y if ARCH_OMAP2PLUS || ARCH_KEYSTONE
 	help
 	  This enables the FDT library (libfdt) overlay support.
-- 
2.39.5