diff options
author | Bjørn Mork <bjorn@mork.no> | 2016-03-28 17:41:19 +0200 |
---|---|---|
committer | Bjørn Mork <bjorn@mork.no> | 2016-03-28 17:41:19 +0200 |
commit | 081b775d515cc53a95ee3ef777f44719b0d57f04 (patch) | |
tree | 935d57b3929eb431ac344808856f05cfc13186d6 | |
parent | 6988b67d9af987a7ba47f82cdaa6c9107e55ec3f (diff) |
mwlwifi: build thermal support both mwlwifi and thermal are modules20160328-4
Signed-off-by: Bjørn Mork <bjorn@mork.no>
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | thermal.h | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -8,6 +8,9 @@ mwlwifi-objs += tx.o mwlwifi-objs += rx.o mwlwifi-objs += isr.o mwlwifi-$(CONFIG_THERMAL) += thermal.o +ifeq (m, $(CONFIG_THERMAL)) +mwlwifi-objs += thermal.o +endif mwlwifi-$(CONFIG_DEBUG_FS) += debugfs.o ifeq (1, $(BUILD_MFG)) mwlwifi-objs += mfg.o @@ -18,7 +18,7 @@ #ifndef _THERMAL_H_ #define _THERMAL_H_ -#ifdef CONFIG_THERMAL +#if IS_ENABLED(CONFIG_THERMAL) int mwl_thermal_register(struct mwl_priv *priv); void mwl_thermal_unregister(struct mwl_priv *priv); void mwl_thermal_set_throttling(struct mwl_priv *priv); |