ath10k: fix config_enabled check for hwmon
authorRajkumar Manoharan <rmanohar@qti.qualcomm.com>
Tue, 13 Jan 2015 08:51:45 +0000 (14:21 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 13 Jan 2015 14:23:28 +0000 (16:23 +0200)
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>
drivers/net/wireless/ath/ath10k/thermal.c

index b14ae8d135f637bf442db547ad979aff653fa4e8..c384c79975ba668f825ca899b2602f9224918312 100644 (file)
@@ -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,