diff options
author | Ganesh Goudar <ganeshgr@chelsio.com> | 2018-11-15 13:06:21 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-15 20:49:07 +0300 |
commit | ebcd210e93b2a984b7a7b82d45f7f0d21b7ec2d2 (patch) | |
tree | 43160edf0d0217bb56410ba147c954aab95db05f /drivers/net/ethernet/chelsio/cxgb4/Makefile | |
parent | b8c3c10cf68d7556466bb7d99f249ed586ddfbe3 (diff) | |
download | linux-ebcd210e93b2a984b7a7b82d45f7f0d21b7ec2d2.tar.xz |
cxgb4: fix thermal zone build error
with CONFIG_THERMAL=m and cxgb4 as built-in build fails, and
'commit e70a57fa59bb ("cxgb4: fix thermal configuration dependencies")'
tries to fix it but when cxgb4i is made built-in build fails again,
use IS_REACHABLE instead of IS_ENABLED to fix the issue.
Fixes: e70a57fa59bb (cxgb4: fix thermal configuration dependencies)
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4/Makefile')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/Makefile | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/Makefile b/drivers/net/ethernet/chelsio/cxgb4/Makefile index 78e5d17a1d5f..91d8a885deba 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/Makefile +++ b/drivers/net/ethernet/chelsio/cxgb4/Makefile @@ -12,6 +12,4 @@ cxgb4-objs := cxgb4_main.o l2t.o smt.o t4_hw.o sge.o clip_tbl.o cxgb4_ethtool.o cxgb4-$(CONFIG_CHELSIO_T4_DCB) += cxgb4_dcb.o cxgb4-$(CONFIG_CHELSIO_T4_FCOE) += cxgb4_fcoe.o cxgb4-$(CONFIG_DEBUG_FS) += cxgb4_debugfs.o -ifdef CONFIG_THERMAL -cxgb4-objs += cxgb4_thermal.o -endif +cxgb4-$(CONFIG_THERMAL) += cxgb4_thermal.o |