]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/net/wireless/ath/ath10k/thermal.c
Merge remote-tracking branch 'sound-current/for-linus'
[karo-tx-linux.git] / drivers / net / wireless / ath / ath10k / thermal.c
index 1a899d70dc5db5e6dea73280a42f06218285de77..60fe562e304110435a481f2e8fcf6181efb11688 100644 (file)
@@ -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);
 }