瀏覽代碼

ath10k: fix cleanup in ath10k_thermal_unregister

First remove the 'cooling_device#n' syslink created
for ath10k and then unregsiter from the thermal subsystem(cooling)

Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Mohammed Shafi Shajakhan 9 年之前
父節點
當前提交
83cfce87d9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/net/wireless/ath/ath10k/thermal.c

+ 1 - 1
drivers/net/wireless/ath/ath10k/thermal.c

@@ -215,6 +215,6 @@ err_cooling_destroy:
 
 
 void ath10k_thermal_unregister(struct ath10k *ar)
 void ath10k_thermal_unregister(struct ath10k *ar)
 {
 {
-	thermal_cooling_device_unregister(ar->thermal.cdev);
 	sysfs_remove_link(&ar->dev->kobj, "cooling_device");
 	sysfs_remove_link(&ar->dev->kobj, "cooling_device");
+	thermal_cooling_device_unregister(ar->thermal.cdev);
 }
 }