regulator: Get rid of lockdep warning
authorAmeya Palande <ameya.palande@nokia.com>
Fri, 12 Mar 2010 18:09:01 +0000 (20:09 +0200)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Mon, 22 Mar 2010 19:44:44 +0000 (19:44 +0000)
commit4f26a2abe1eed18dc6adddf2d0ae5553e51578c2
treeb390fb19f6f2b7583ba4f93451d20fc4e34e9958
parent67e46f347eb25222e2b415540b6ba3fd2574afe2
regulator: Get rid of lockdep warning

WARNING: at kernel/lockdep.c:2706 sysfs_add_file_mode+0x4c/0xa8()

Difference between v1 and v2:
Moved sysfs_attr_init() call as first one to access the structure.

Signed-off-by: Ameya Palande <ameya.palande@nokia.com>
CC: Liam Girdwood <lrg@slimlogic.co.uk>
CC: Mark Brown <broonie@opensource.wolfsonmicro.com>
CC: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/core.c