]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
cxgb{3,4}*: improve Kconfig dependencies
authorDimitris Michailidis <dm@chelsio.com>
Mon, 28 Feb 2011 17:34:15 +0000 (17:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Mar 2011 06:22:51 +0000 (22:22 -0800)
- Remove the dependency of cxgb4 and cxgb4vf on INET.  cxgb3 really
  depends on INET, keep it but add it directly to the driver's Kconfig
  entry.
- Make the iSCSI drivers cxgb3i and cxgb4i available in the SCSI menu
  without requiring any options in the net driver menu to be enabled
  first.  Add needed selects so the iSCSI drivers can build their
  corresponding net drivers.
- Remove CHELSIO_T*_DEPENDS.

Signed-off-by: Dimitris Michailidis <dm@chelsio.com>
Acked-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/Kconfig
drivers/scsi/cxgbi/cxgb3i/Kconfig
drivers/scsi/cxgbi/cxgb4i/Kconfig

index f4b39274308a901fe5d183034c05731758b28571..6e09d5fea2216bb6de0ffda25955dad6863159f6 100644 (file)
@@ -2595,14 +2595,9 @@ config CHELSIO_T1_1G
          Enables support for Chelsio's gigabit Ethernet PCI cards.  If you
          are using only 10G cards say 'N' here.
 
-config CHELSIO_T3_DEPENDS
-       tristate
-       depends on PCI && INET
-       default y
-
 config CHELSIO_T3
        tristate "Chelsio Communications T3 10Gb Ethernet support"
-       depends on CHELSIO_T3_DEPENDS
+       depends on PCI && INET
        select FW_LOADER
        select MDIO
        help
@@ -2620,14 +2615,9 @@ config CHELSIO_T3
          To compile this driver as a module, choose M here: the module
          will be called cxgb3.
 
-config CHELSIO_T4_DEPENDS
-       tristate
-       depends on PCI && INET
-       default y
-
 config CHELSIO_T4
        tristate "Chelsio Communications T4 Ethernet support"
-       depends on CHELSIO_T4_DEPENDS
+       depends on PCI
        select FW_LOADER
        select MDIO
        help
@@ -2645,14 +2635,9 @@ config CHELSIO_T4
          To compile this driver as a module choose M here; the module
          will be called cxgb4.
 
-config CHELSIO_T4VF_DEPENDS
-       tristate
-       depends on PCI && INET
-       default y
-
 config CHELSIO_T4VF
        tristate "Chelsio Communications T4 Virtual Function Ethernet support"
-       depends on CHELSIO_T4VF_DEPENDS
+       depends on PCI
        help
          This driver supports Chelsio T4-based gigabit and 10Gb Ethernet
          adapters with PCI-E SR-IOV Virtual Functions.
index 5cf4e9831f1bf2cffa4c57f302bc52aaf00a2f17..11dff23f7838479e33f90fd412154a66ceb77dbd 100644 (file)
@@ -1,6 +1,8 @@
 config SCSI_CXGB3_ISCSI
        tristate "Chelsio T3 iSCSI support"
-       depends on CHELSIO_T3_DEPENDS
+       depends on PCI && INET
+       select NETDEVICES
+       select NETDEV_10000
        select CHELSIO_T3
        select SCSI_ISCSI_ATTRS
        ---help---
index bb94b39b17b3ee10df2c403c22c7db3cab91a211..d5302c27f37786d62302d29037a977a422b74827 100644 (file)
@@ -1,6 +1,8 @@
 config SCSI_CXGB4_ISCSI
        tristate "Chelsio T4 iSCSI support"
-       depends on CHELSIO_T4_DEPENDS
+       depends on PCI && INET
+       select NETDEVICES
+       select NETDEV_10000
        select CHELSIO_T4
        select SCSI_ISCSI_ATTRS
        ---help---