tg3: Add the ability to conditionally build w/ HWMON
Introduce a Kconfig option: CONFIG_TIGON3_HWMON which allows to build in/out support for thermal sensors reported by Tigon3 NICs. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
9c13e8d0c2
commit
038e893d78
@@ -109,7 +109,6 @@ config TIGON3
|
||||
tristate "Broadcom Tigon3 support"
|
||||
depends on PCI
|
||||
select PHYLIB
|
||||
select HWMON
|
||||
imply PTP_1588_CLOCK
|
||||
---help---
|
||||
This driver supports Broadcom Tigon3 based gigabit Ethernet cards.
|
||||
@@ -117,6 +116,13 @@ config TIGON3
|
||||
To compile this driver as a module, choose M here: the module
|
||||
will be called tg3. This is recommended.
|
||||
|
||||
config TIGON3_HWMON
|
||||
bool "Broadcom Tigon3 HWMON support"
|
||||
default y
|
||||
depends on TIGON3 && HWMON && !(TIGON3=y && HWMON=m)
|
||||
---help---
|
||||
Say Y if you want to expose the thermal sensor on Tigon3 devices.
|
||||
|
||||
config BNX2X
|
||||
tristate "Broadcom NetXtremeII 10Gb support"
|
||||
depends on PCI
|
||||
|
Reference in New Issue
Block a user