]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon: (pmbus) Initialize sysfs attributes
authorGuenter Roeck <guenter.roeck@ericsson.com>
Tue, 24 May 2011 19:16:40 +0000 (12:16 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Jun 2011 00:32:34 +0000 (09:32 +0900)
commitf40e1a49dbb9bd52bb7a8ddbf98b4520e33a3190
tree4d70f6199b20ee2828cd72caad04fb0e10e8f903
parent17fdfc59e1cdf37689f5747ed527dbd5961b2010
hwmon: (pmbus) Initialize sysfs attributes

commit eec752b2b99c794766926a9bac59b0d7df5b09c2 upstream.

Initialize sysfs attrs before device_create_file() call to suppress
lockdep_init_map() warning:

WARNING: at kernel/lockdep.c:2701 lockdep_init_map+0x12d/0x140()

Reviewed-by: Robert Coulson <robert.coulson@ericsson.com>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/hwmon/pmbus_core.c