extcon: Ensure dynamically allocated sysfs attributes are initialised
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 16 Aug 2012 19:03:21 +0000 (20:03 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Aug 2012 21:05:40 +0000 (14:05 -0700)
The operation of lockdep requires that all dynamically allocated sysfs
nodes are initialised using sysfs_attr_init() otherwise lots of warnings
are generated. Ensure that all the dynamically allocated attributes that
extcon generates have this done.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/extcon/extcon-class.c

Simple merge