[PATCH 2/2] drm/nouveau/hwmon: Convert to use devm_hwmon_device_register_with_groups

2013-11-22 Thread Guenter Roeck
Simplify the code and resolve race conditions seen because attribute files are created after hwmon device registration, and removed before hwmon device removal. Signed-off-by: Guenter Roeck --- Compile tested only; unfortunately I don't have the the necessary hardware.

[PATCH 2/2] drm/nouveau/hwmon: Convert to use devm_hwmon_device_register_with_groups

2013-11-22 Thread Guenter Roeck
Simplify the code and resolve race conditions seen because attribute files are created after hwmon device registration, and removed before hwmon device removal. Signed-off-by: Guenter Roeck li...@roeck-us.net --- Compile tested only; unfortunately I don't have the the necessary hardware.