OSDN Git Service

ath10k: fix wrong symlink name on error path
authorRajkumar Manoharan <rmanohar@qti.qualcomm.com>
Thu, 12 Mar 2015 17:32:00 +0000 (19:32 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 19 Mar 2015 13:48:43 +0000 (15:48 +0200)
Wrong symlink name is used on error path of thermal registration
and also correcting the error message.

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 aede750..747fea7 100644 (file)
@@ -202,7 +202,7 @@ int ath10k_thermal_register(struct ath10k *ar)
        ret = sysfs_create_link(&ar->dev->kobj, &cdev->device.kobj,
                                "cooling_device");
        if (ret) {
-               ath10k_err(ar, "failed to create thermal symlink\n");
+               ath10k_err(ar, "failed to create cooling device symlink\n");
                goto err_cooling_destroy;
        }
 
@@ -231,7 +231,7 @@ int ath10k_thermal_register(struct ath10k *ar)
        return 0;
 
 err_remove_link:
-       sysfs_remove_link(&ar->dev->kobj, "thermal_sensor");
+       sysfs_remove_link(&ar->dev->kobj, "cooling_device");
 err_cooling_destroy:
        thermal_cooling_device_unregister(cdev);
        return ret;