From: Rajkumar Manoharan Date: Tue, 13 Jan 2015 08:51:45 +0000 (+0530) Subject: ath10k: fix config_enabled check for hwmon X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a4031afbdc7bfdf26b98b160a5fca05b9cf38140;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Kalle Valo --- 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,