diff options
author | Guenter Roeck <linux@roeck-us.net> | 2013-11-23 23:03:21 +0400 |
---|---|---|
committer | Matthew Garrett <matthew.garrett@nebula.com> | 2014-01-21 17:44:03 +0400 |
commit | f0c34c97b3193fee87a3942047c415d476615db1 (patch) | |
tree | 7c4eabb96a4263fa402eebeb7a01c80ce4cc10fe /drivers/platform/x86/compal-laptop.c | |
parent | cf508f4496f7dc7c162a8ac4440165d466f68d4b (diff) | |
download | linux-f0c34c97b3193fee87a3942047c415d476615db1.tar.xz |
eeepc-laptop: Convert to use devm_hwmon_device_register_with_groups
Simplify the code and avoid race condition caused by creating sysfs attributes
after creating the hwmon device.
Also replace SENSOR_DEVICE_ATTR with DEVICE_ATTR since the extra argument
is not used and SENSOR_DEVICE_ATTR is not needed.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
Diffstat (limited to 'drivers/platform/x86/compal-laptop.c')
0 files changed, 0 insertions, 0 deletions