hwmon: (coretemp) Convert to use devm_hwmon_device_register_with_groups
authorGuenter Roeck <linux@roeck-us.net>
Sun, 16 Feb 2014 23:49:04 +0000 (15:49 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 3 Mar 2014 16:01:05 +0000 (08:01 -0800)
commitd72d19c26c417d514787ae85b197af34de286c0a
tree7a199d3eb89f97bf09e945ac6db0e2acab8a8261
parentc503a811e44f4a861e3db0540dd7d4f2146a10f2
hwmon: (coretemp) Convert to use devm_hwmon_device_register_with_groups

Simplify code, reduce code size, and attach sysfs attributes to hwmon device.

For this driver, the only attribute created is the name attribute.
Other attributes are still created and removed dynamically as cores
are added or removed.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Tested-by: Jean Delvare <jdelvare@suse.de>
drivers/hwmon/coretemp.c