thermal: Make sysfs attributes of cooling devices default attributes
authorMatthias Kaehlcke <mka@chromium.org>
Sat, 21 Feb 2015 02:10:08 +0000 (18:10 -0800)
committerEduardo Valentin <edubezval@gmail.com>
Thu, 5 Mar 2015 05:47:57 +0000 (01:47 -0400)
commit2dc10f8963e6a03a1a75deafe1d1984bafab08dd
tree36c23fa93ef3062dac39b2ebc76cd39ccc324cf6
parentd5bce867778c8cb5ff655efe47fecb4b31f30406
thermal: Make sysfs attributes of cooling devices default attributes

Default attributes are created when the device is registered. Attributes
created after device registration can lead to race conditions, where user space
(e.g. udev) sees the device but not the attributes.

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/thermal_core.c