Commit f398a771 authored by Harish Patil's avatar Harish Patil Committed by David S. Miller

qlcnic: Fix Kconfig dependency on HWMON

Commit 1f0f467b "qlcnic: Add hwmon interface to export board
temperature" introduced a randconfig build error in the case
when the hwmon framework is built as a module and the qlcnic
driver itself is built-in:

drivers/built-in.o: In function `qlcnic_register_hwmon_dev':
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c:1301:
undefined reference to `hwmon_device_register_with_groups'
drivers/built-in.o: In function `qlcnic_unregister_hwmon_dev':
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c:1309:
undefined reference to `hwmon_device_unregister'.

This changes the Kconfig logic to enforce that the qlcnic hwmon
support can only be enabled if it is possible to successfully
build it.
Signed-off-by: default avatarHarish Patil <harish.patil@qlogic.com>
Reported-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c1a58d6a
...@@ -68,7 +68,7 @@ config QLCNIC_VXLAN ...@@ -68,7 +68,7 @@ config QLCNIC_VXLAN
config QLCNIC_HWMON config QLCNIC_HWMON
bool "QLOGIC QLCNIC 82XX and 83XX family HWMON support" bool "QLOGIC QLCNIC 82XX and 83XX family HWMON support"
depends on QLCNIC && HWMON depends on QLCNIC && HWMON && !(QLCNIC=y && HWMON=m)
default y default y
---help--- ---help---
This configuration parameter can be used to read the This configuration parameter can be used to read the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment