cpuidle / sysfs: move kobj initialization in the syfs file
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 26 Oct 2012 10:26:32 +0000 (12:26 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 14 Nov 2012 23:34:19 +0000 (00:34 +0100)
commite45a00d679a788217f35ee4214a32d6d1924160b
treefd8e431856bf3df54b5af7352d026997d551d015
parent1aef40e288acfb3cc28ff77528b34ef66683bed6
cpuidle / sysfs: move kobj initialization in the syfs file

Move the kobj initialization and completion in the sysfs.c
and encapsulate the code more.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpuidle/cpuidle.c
drivers/cpuidle/sysfs.c