cpufreq: propagate error returned by kobject_move()
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 17 Jul 2014 05:18:27 +0000 (10:48 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 21 Jul 2014 11:43:20 +0000 (13:43 +0200)
commit41dfd908fc09e0e57f8f44fdcf543348cd5f249c
tree0f5238edcdacf273abdc17ed676c818fddd36cdd
parent1461dc7d1c252fbeb5baee0c94b5b28b7966e125
cpufreq: propagate error returned by kobject_move()

We are returning -EINVAL instead of the error returned from kobject_move() when
it fails. Propagate the actual error number.

Also add a meaningful print when sysfs_create_link() fails.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq.c