cxgb4: fix thermal zone build error
authorGanesh Goudar <ganeshgr@chelsio.com>
Thu, 15 Nov 2018 10:06:21 +0000 (15:36 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Nov 2018 17:49:07 +0000 (09:49 -0800)
commitebcd210e93b2a984b7a7b82d45f7f0d21b7ec2d2
tree43160edf0d0217bb56410ba147c954aab95db05f
parentb8c3c10cf68d7556466bb7d99f249ed586ddfbe3
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>
drivers/net/ethernet/chelsio/Kconfig
drivers/net/ethernet/chelsio/cxgb4/Makefile
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c