linux/drivers/net/ethernet/broadcom
Paul Gortmaker de0a41484c tg3: unconditionally select HWMON support when tg3 is enabled.
There is the seldom used corner case where HWMON=m at the same
time as TIGON3=y (typically randconfigs) which will cause a link
fail like:

drivers/built-in.o: In function `tg3_close':
tg3.c:(.text+0x16bd86): undefined reference to `hwmon_device_unregister'
drivers/built-in.o: In function `tg3_hwmon_open':
tg3.c:(.text+0x16fc4b): undefined reference to `hwmon_device_register'
make[1]: *** [vmlinux] Error 1

Fix it as suggested by DaveM[1] by having the Kconfig logic simply
select HWMON when TIGON3 is selected.  This gets rid of all the
extra IS_ENABLED ifdeffery in tg3.c as a side benefit.

[1] http://marc.info/?l=linux-netdev&m=134250573718151&w=2

Cc: Michael Chan <mchan@broadcom.com>
Reported-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Reported-by: Anisse Astier <anisse@astier.eu>
Suggested-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-10-01 18:07:39 -04:00
..
bnx2x bnx2x: update version to 1.78.00-0. 2012-10-01 16:43:17 -04:00
b44.c b44: add 64 bit stats 2012-07-18 09:29:43 -07:00
b44.h b44: add 64 bit stats 2012-07-18 09:29:43 -07:00
bcm63xx_enet.c bcm63xx-enet: fix PHY name to match MDIO bus name 2012-02-13 16:04:08 -05:00
bcm63xx_enet.h
bnx2_fw.h
bnx2.c bnx2: Clean up remaining iounmap 2012-09-27 19:18:50 -04:00
bnx2.h bnx2: Read PCI function number from internal register 2012-06-16 22:22:59 -07:00
cnic_defs.h bnx2x,cnic: use FW 7.8.2 2012-10-01 16:43:17 -04:00
cnic_if.h bnx2x,cnic: use FW 7.8.2 2012-10-01 16:43:17 -04:00
cnic.c bnx2x,cnic: use FW 7.8.2 2012-10-01 16:43:17 -04:00
cnic.h cnic: Allocate kcq resource only on devices that support FCoE. 2012-09-10 15:48:21 -04:00
Kconfig tg3: unconditionally select HWMON support when tg3 is enabled. 2012-10-01 18:07:39 -04:00
Makefile
sb1250-mac.c drivers/net: Remove alloc_etherdev error messages 2012-01-31 16:20:48 -05:00
tg3.c tg3: unconditionally select HWMON support when tg3 is enabled. 2012-10-01 18:07:39 -04:00
tg3.h tg3: Add support for ethtool -L|-l to get/set the number of rings. 2012-09-30 02:10:36 -04:00