hwmon: (ibmpex) Initialize sysfs attributes
commitd631323f1151c09c21985cb1bba8a17eba83ad99
authorGuenter Roeck <guenter.roeck@ericsson.com>
Tue, 24 May 2011 19:34:12 +0000 (24 12:34 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 9 Jul 2011 06:14:59 +0000 (8 23:14 -0700)
tree2a83169998a7b54dadc39217bd2eb0786848d520
parentaf3071a228ce8e0dc98c8082cee2e95d223bd4fe
hwmon: (ibmpex) Initialize sysfs attributes

commit fb794e0f7153918c33f2300986d995524ab711cf upstream.

Initialize dynamically allocated sysfs attributes before device_create_file()
call to suppress lockdep_init_map() warning if lockdep debugging is enabled.

Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Acked-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/hwmon/ibmpex.c