Skip to contentSkip to conversation

cnic, bnx2i: Fix build failure when CONFIG_PCI is not set.

PATCH New Michael Chan 1 participant 1 message Jun 10, 2009

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cnic, bnx2i: Fix build failure when CONFIG_PCI is not set.

CNIC and BNX2I must depend on PCI. Dependencies do not get propagated through select.

---
 drivers/net/Kconfig        |    5 +++--
 drivers/scsi/bnx2i/Kconfig |    1 +
 2 files changed, 4 insertions(+), 2 deletions(-)
drivers/net/Kconfig +3 -2
index f3c4a3b..f690314 100644
@@ -2266,8 +2266,9 @@ config BNX2
 
 config CNIC
 	tristate "Broadcom CNIC support"
-	depends on BNX2
-	depends on UIO
+	depends on PCI
+	select BNX2
+	select UIO
 	help
 	  This driver supports offload features of Broadcom NetXtremeII
 	  gigabit Ethernet cards.
drivers/scsi/bnx2i/Kconfig +1 -0
index 820d428..b62b482 100644
@@ -2,6 +2,7 @@ config SCSI_BNX2_ISCSI
 	tristate "Broadcom NetXtreme II iSCSI support"
 	select SCSI_ISCSI_ATTRS
 	select CNIC
+	depends on PCI
 	---help---
 	This driver supports iSCSI offload for the Broadcom NetXtreme II
 	devices.
Signature · 1 line
1.5.6.GIT