diff options
author | Mohammed Shafi Shajakhan <mohammed@qti.qualcomm.com> | 2015-10-08 10:33:03 (GMT) |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2015-10-14 05:59:08 (GMT) |
commit | 83cfce87d91f06e37bd38f782f0714b406a95873 (patch) | |
tree | b36e2ae16d9b78e99fdc103c03a685b3970e136d /drivers/net/wireless/ath/ath10k/thermal.c | |
parent | db0984e51a187f5bbe41231af7e671cc12586346 (diff) | |
download | linux-83cfce87d91f06e37bd38f782f0714b406a95873.tar.xz |
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>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/thermal.c')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/thermal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath10k/thermal.c b/drivers/net/wireless/ath/ath10k/thermal.c index 1a899d7..60fe562 100644 --- a/drivers/net/wireless/ath/ath10k/thermal.c +++ b/drivers/net/wireless/ath/ath10k/thermal.c @@ -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); } |