hwmon: (pmbus) Initialize sysfs attributes
authorGuenter Roeck <guenter.roeck@ericsson.com>
Tue, 24 May 2011 19:16:40 +0000 (12:16 -0700)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Fri, 27 May 2011 09:24:54 +0000 (02:24 -0700)
commiteec752b2b99c794766926a9bac59b0d7df5b09c2
tree09fff0636772e1e6a55330b730807946b07e8492
parent6777b9e47e4daf7116ec12b69e9b5cc980809217
hwmon: (pmbus) Initialize sysfs attributes

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>
Cc: stable@kernel.org # .39.x
drivers/hwmon/pmbus_core.c