diff options
author | Guenter Roeck <linux@roeck-us.net> | 2013-11-26 02:15:28 -0500 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2013-12-18 01:43:05 -0500 |
commit | 03b77d8180378632e76f1157d9a685ca4c79d0cf (patch) | |
tree | fe28c2b16a8c61531a5f3c5b6a25024868c17263 /sound/oss/dev_table.c | |
parent | 220fe050dac5711453d5ba3605dec2f2eb55f234 (diff) |
ixgbe: Convert to use devm_hwmon_device_register_with_groups
Simplify the code. Attach hwmon sysfs attributes to hwmon device
instead of pci device. Avoid race conditions caused by attributes
being created after hwmon device registration. Implicitly
(through hwmon API) add mandatory 'name' sysfs attribute.
Other cleanup:
Instead of allocating memory for hwmon attributes, move attributes
and all other hwmon related data into struct hwmon_buff and allocate
the entire structure using devm_kzalloc.
Check return value from calls to igb_add_hwmon_attr() one by one instead
of logically combining them all together.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'sound/oss/dev_table.c')
0 files changed, 0 insertions, 0 deletions