浏览代码

net: hns3: give default option while dependency HNS3 set

Give default option for HNS3_HCLGE and HNS3_ENET will be helpful,
while dependency HNS3 is set. Meanwhile, use "if HNS3" section
instead of all the "depends on HNS3".

Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Huazhong Tan 7 年之前
父节点
当前提交
7a7056e3df
共有 1 个文件被更改,包括 9 次插入6 次删除
  1. 9 6
      drivers/net/ethernet/hisilicon/Kconfig

+ 9 - 6
drivers/net/ethernet/hisilicon/Kconfig

@@ -85,10 +85,12 @@ config HNS3
 	  drivers(like ODP)to register with HNAE devices and their associated
 	  drivers(like ODP)to register with HNAE devices and their associated
 	  operations.
 	  operations.
 
 
+if HNS3
+
 config HNS3_HCLGE
 config HNS3_HCLGE
 	tristate "Hisilicon HNS3 HCLGE Acceleration Engine & Compatibility Layer Support"
 	tristate "Hisilicon HNS3 HCLGE Acceleration Engine & Compatibility Layer Support"
+	default m
 	depends on PCI_MSI
 	depends on PCI_MSI
-	depends on HNS3
 	---help---
 	---help---
 	  This selects the HNS3_HCLGE network acceleration engine & its hardware
 	  This selects the HNS3_HCLGE network acceleration engine & its hardware
 	  compatibility layer. The engine would be used in Hisilicon hip08 family of
 	  compatibility layer. The engine would be used in Hisilicon hip08 family of
@@ -97,16 +99,15 @@ config HNS3_HCLGE
 config HNS3_DCB
 config HNS3_DCB
 	bool "Hisilicon HNS3 Data Center Bridge Support"
 	bool "Hisilicon HNS3 Data Center Bridge Support"
 	default n
 	default n
-	depends on HNS3 && HNS3_HCLGE && DCB
+	depends on HNS3_HCLGE && DCB
 	---help---
 	---help---
 	  Say Y here if you want to use Data Center Bridging (DCB) in the HNS3 driver.
 	  Say Y here if you want to use Data Center Bridging (DCB) in the HNS3 driver.
 
 
 	  If unsure, say N.
 	  If unsure, say N.
 
 
 config HNS3_HCLGEVF
 config HNS3_HCLGEVF
-    tristate "Hisilicon HNS3VF Acceleration Engine & Compatibility Layer Support"
-    depends on PCI_MSI
-    depends on HNS3
+	tristate "Hisilicon HNS3VF Acceleration Engine & Compatibility Layer Support"
+	depends on PCI_MSI
 	depends on HNS3_HCLGE
 	depends on HNS3_HCLGE
     ---help---
     ---help---
 	  This selects the HNS3 VF drivers network acceleration engine & its hardware
 	  This selects the HNS3 VF drivers network acceleration engine & its hardware
@@ -115,11 +116,13 @@ config HNS3_HCLGEVF
 
 
 config HNS3_ENET
 config HNS3_ENET
 	tristate "Hisilicon HNS3 Ethernet Device Support"
 	tristate "Hisilicon HNS3 Ethernet Device Support"
+	default m
 	depends on 64BIT && PCI
 	depends on 64BIT && PCI
-	depends on HNS3
 	---help---
 	---help---
 	  This selects the Ethernet Driver for Hisilicon Network Subsystem 3 for hip08
 	  This selects the Ethernet Driver for Hisilicon Network Subsystem 3 for hip08
 	  family of SoCs. This module depends upon HNAE3 driver to access the HNAE3
 	  family of SoCs. This module depends upon HNAE3 driver to access the HNAE3
 	  devices and their associated operations.
 	  devices and their associated operations.
 
 
+endif #HNS3
+
 endif # NET_VENDOR_HISILICON
 endif # NET_VENDOR_HISILICON