i8k: Convert to use to hwmon_device_register_with_groups hwmon API
authorGuenter Roeck <linux@roeck-us.net>
Sat, 14 Dec 2013 17:30:10 +0000 (09:30 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Dec 2013 00:45:38 +0000 (16:45 -0800)
commit82ba1d3f9703fc8e40c14b2afe06895980ecee67
treee9eabbd0f30491edadd273310c254672b4a84979
parent12186f51b62b4210bd46c31ba23f4c5f4d0b2b11
i8k: Convert to use to hwmon_device_register_with_groups hwmon API

Simplify code and fix race condition caused by registering
hwmon device prior to creating sysfs attributes.

Cc: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/i8k.c