]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite962e30e1ebe480f746c472627cc78d92c3a8a3a
tree43160edf0d0217bb56410ba147c954aab95db05f
parentd3ed2b9ee53b3e97e6abd0e5ccae84c8155f8a26
cxgb4: fix thermal zone build error

with CONFIG_THERMAL=m and cxgb4 as built-in build fails, and
'commit d71fb4f59df7 ("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: d71fb4f59df7 (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