From f90c7fb4a65c9d4f1954c65ae29bae97230a2ea9 Mon Sep 17 00:00:00 2001 From: nebula_matrix Date: Wed, 24 May 2023 11:45:32 +0800 Subject: [PATCH] Net: m1600: Fix build err for hwmon.c. m1600-dirver inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I77UIM CVE: NA -------------------------------- M1600 dirver depend on CONFIG_HWMON, let's add the dependency. Signed-off-by: Yi Chen --- drivers/net/ethernet/nebula-matrix/Kconfig | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/ethernet/nebula-matrix/Kconfig b/drivers/net/ethernet/nebula-matrix/Kconfig index 906d3362e49d..ef6c18cdabdc 100644 --- a/drivers/net/ethernet/nebula-matrix/Kconfig +++ b/drivers/net/ethernet/nebula-matrix/Kconfig @@ -5,7 +5,6 @@ config NET_VENDOR_NEBULA_MATRIX bool "Nebula-matrix devices" - default y help If you have a network (Ethernet) card belonging to this class, say Y. @@ -18,9 +17,8 @@ if NET_VENDOR_NEBULA_MATRIX config M1600 tristate "Nebula-matrix Ethernet Controller m1600 Family support" - depends on PCI + depends on PCI && HWMON depends on ARM64 || X86_64 - default m help This driver supports Nebula-matrix Ethernet Controller m1600 Family of devices. For more information about this product, go to the product -- Gitee