Skip to contentSkip to conversation

ath10k: Fix cleanup in ath10k_thermal_unregister

PATCH Applied Mohammed Shafi Shajakhan 2 participants 2 messages Oct 8, 2015 – Oct 13, 2015 Qualcomm Atheros ATH10K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath10k: Fix cleanup in ath10k_thermal_unregister

From: Mohammed Shafi Shajakhan <[email protected]>

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

---
 drivers/net/wireless/ath/ath10k/thermal.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/ath/ath10k/thermal.c +1 -1
index 1a899d7..60fe562 100644
@@ -215,6 +215,6 @@ err_cooling_destroy:
 
 void ath10k_thermal_unregister(struct ath10k *ar)
 {
-	thermal_cooling_device_unregister(ar->thermal.cdev);
 	sysfs_remove_link(&ar->dev->kobj, "cooling_device");
+	thermal_cooling_device_unregister(ar->thermal.cdev);
 }
Signature · 1 line
1.7.9.5