Re: [PATCH 1/2] drm/radeon/dpm: Convert to use devm_hwmon_register_with_groups

2013-11-26 Thread Alex Deucher
On Mon, Nov 25, 2013 at 1:07 PM, Guenter Roeck wrote: > On Fri, Nov 22, 2013 at 09:52:00PM -0800, Guenter Roeck wrote: >> Simplify the code and fix race condition seen because >> attribute files were created after hwmon device registration. >> >> Signed-off-by: Guenter Roeck >> --- >> Compile tes

Re: [PATCH 1/2] drm/radeon/dpm: Convert to use devm_hwmon_register_with_groups

2013-11-25 Thread Guenter Roeck
On Fri, Nov 22, 2013 at 09:52:00PM -0800, Guenter Roeck wrote: > Simplify the code and fix race condition seen because > attribute files were created after hwmon device registration. > > Signed-off-by: Guenter Roeck > --- > Compile tested only; unfortunately I don't have the the necessary hardwar

[PATCH 1/2] drm/radeon/dpm: Convert to use devm_hwmon_register_with_groups

2013-11-22 Thread Guenter Roeck
Simplify the code and fix race condition seen because attribute files were created after hwmon device registration. Signed-off-by: Guenter Roeck --- Compile tested only; unfortunately I don't have the the necessary hardware. drivers/gpu/drm/radeon/radeon_pm.c | 49 +---