kernel: qlcnic: add dependency to kmod-hwmon-core
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 1 May 2021 09:58:47 +0000 (11:58 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 1 May 2021 10:00:41 +0000 (12:00 +0200)
QLCNIC_HWMON was activated when hwmon was set, but the dependency was
missing. This broke the build bot builds. Fix this by explicitly
activating HWMON support and adding a dependency.

Fixes: f88c64d28ccf ("kernel: netdev: add qlcnic")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/kernel/linux/modules/netdevices.mk

index 5308442003f1332dff6625f99a5d322e38b49577..8025fd2a95223ee7811b3486f31ecc8bb0518373 100644 (file)
@@ -1195,9 +1195,11 @@ $(eval $(call KernelPackage,mlx5-core))
 
 define KernelPackage/qlcnic
   SUBMENU:=$(NETWORK_DEVICES_MENU)
-  DEPENDS:=@PCI_SUPPORT
+  DEPENDS:=@PCI_SUPPORT +kmod-hwmon-core
   TITLE:=QLogic QLE8240 and QLE8242 device support
-  KCONFIG:=CONFIG_QLCNIC
+  KCONFIG:= \
+       CONFIG_QLCNIC \
+       CONFIG_QLCNIC_HWMON=y
   FILES:=$(LINUX_DIR)/drivers/net/ethernet/qlogic/qlcnic/qlcnic.ko
   AUTOLOAD:=$(call AutoProbe,qlcnic)
 endef