From 8d2c311ce64939fe829037e4ef7951c3fafaee06 Mon Sep 17 00:00:00 2001
From: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Date: Mon, 24 Jul 2023 21:27:26 +0200
Subject: [PATCH] spl: CONFIG_SPL_PCI_PNP should depend on CONFIG_SPL_PCI

CONFIG_SPL_PCI_PNP=y without CONFIG_SPL_PCI=y makes no sense.

Fixes: 32f5e9e5c1a7 ("nvme: pci: Enable for SPL")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
---
 drivers/pci/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/pci/Kconfig b/drivers/pci/Kconfig
index aca439d921..93e6f50000 100644
--- a/drivers/pci/Kconfig
+++ b/drivers/pci/Kconfig
@@ -41,7 +41,8 @@ config PCI_PNP
 	  Enable PCI memory and I/O space resource allocation and assignment.
 
 config SPL_PCI_PNP
-	bool "Enable Plug & Play support for PCI"
+	bool "Enable Plug & Play support for PCI in SPL"
+	depends on SPL_PCI
 	help
 	  Enable PCI memory and I/O space resource allocation and assignment.
 
-- 
2.39.5