diff options
author | Rajkumar Manoharan <rmanohar@qti.qualcomm.com> | 2015-01-13 09:51:45 +0100 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2015-01-13 15:23:28 +0100 |
commit | a4031afbdc7bfdf26b98b160a5fca05b9cf38140 (patch) | |
tree | 2e3c8ddc64f297b41fbb2d94973dd178dc66766d /drivers/net/wireless/ath/ath10k/thermal.c | |
parent | ath10k: Fix potential Rx ring corruption (diff) | |
download | linux-a4031afbdc7bfdf26b98b160a5fca05b9cf38140.tar.xz linux-a4031afbdc7bfdf26b98b160a5fca05b9cf38140.zip |
ath10k: fix config_enabled check for hwmon
Because of wrong macro check in commit 96bba98393f9 ("ath10k: fix build error
when hwmon is off"), hwmon never be enabled. Fix that.
Signed-off-by: Rajkumar Manoharan <rmanohar@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/thermal.c')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/thermal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath10k/thermal.c b/drivers/net/wireless/ath/ath10k/thermal.c index b14ae8d135f6..c384c79975ba 100644 --- a/drivers/net/wireless/ath/ath10k/thermal.c +++ b/drivers/net/wireless/ath/ath10k/thermal.c @@ -215,7 +215,7 @@ int ath10k_thermal_register(struct ath10k *ar) /* Avoid linking error on devm_hwmon_device_register_with_groups, I * guess linux/hwmon.h is missing proper stubs. */ - if (!config_enabled(HWMON)) + if (!config_enabled(CONFIG_HWMON)) return 0; hwmon_dev = devm_hwmon_device_register_with_groups(ar->dev, |