w83791d: Fix unchecked return status
authorJim Cromie <jim.cromie@gmail.com>
Sun, 8 Oct 2006 19:56:29 +0000 (21:56 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 18 Oct 2006 20:03:08 +0000 (13:03 -0700)
commit34fc921a253f3ddfc4ad9de1dbc88683f84fbaaa
tree9e1bc568db0226d8dfaa6535fce80437696ea134
parent73ed9a86cd77b6a3b46beec8d353ac3b0d4f50c1
w83791d: Fix unchecked return status

Replace all unchecked calls to device_create_file with a single group
declaration, and one call to sysfs_create_group, and check that one
return status. Also remove the files on device detach.

Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
Signed-off by: Charles Spirakis <bezaur@gmail.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/hwmon/w83791d.c