diff options
| author | Rajkumar Manoharan <rmanohar@qti.qualcomm.com> | 2015-01-13 03:51:45 -0500 |
|---|---|---|
| committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2015-01-13 09:23:28 -0500 |
| commit | a4031afbdc7bfdf26b98b160a5fca05b9cf38140 (patch) | |
| tree | 2e3c8ddc64f297b41fbb2d94973dd178dc66766d | |
| parent | 5de6dfc82f715b9fe9cf5c0cccce4384a82279ef (diff) | |
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>
| -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) | |||
| 215 | 215 | ||
| 216 | /* Avoid linking error on devm_hwmon_device_register_with_groups, I | 216 | /* Avoid linking error on devm_hwmon_device_register_with_groups, I |
| 217 | * guess linux/hwmon.h is missing proper stubs. */ | 217 | * guess linux/hwmon.h is missing proper stubs. */ |
| 218 | if (!config_enabled(HWMON)) | 218 | if (!config_enabled(CONFIG_HWMON)) |
| 219 | return 0; | 219 | return 0; |
| 220 | 220 | ||
| 221 | hwmon_dev = devm_hwmon_device_register_with_groups(ar->dev, | 221 | hwmon_dev = devm_hwmon_device_register_with_groups(ar->dev, |
