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)
commit9baf3220afe870b2526397919857b271c3affda5
tree7f76d3be9e5c20162a68f18f5d46868ea2313aa9
parent1508d8111f0e965ebe06c32dc4d176750eb53c3a
extcon: Ensure dynamically allocated sysfs attributes are initialised

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