]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon: (s3c) Initialize sysfs attributes
authorGuenter Roeck <guenter.roeck@ericsson.com>
Tue, 24 May 2011 19:34:55 +0000 (12:34 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 9 Jul 2011 06:14:58 +0000 (23:14 -0700)
commitaf3071a228ce8e0dc98c8082cee2e95d223bd4fe
tree89c4d92428a78bf0ee2831b8ee356f2088b9783c
parent4ee267bbbd58bdcf9dc84ebc01a34ff68b5de3ed
hwmon: (s3c) Initialize sysfs attributes

commit b1e698db0939b04602ded2a2196ff69c92b49378 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/s3c-hwmon.c