mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] regulator: Get rid of lockdep warning
@ 2010-03-12 17:16 Ameya Palande
  2010-03-12 17:21 ` Mark Brown
  0 siblings, 1 reply; 5+ messages in thread
From: Ameya Palande @ 2010-03-12 17:16 UTC (permalink / raw)
  To: linux-kernel; +Cc: lrg, broonie, dbrownell

From: Ameya Palande <ameya.palande@nokia.com>

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

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>
---
 drivers/regulator/core.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index c7bbe30..2ad3272 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -1045,6 +1045,7 @@ static struct regulator *create_regulator(struct regulator_dev *rdev,
 		regulator->dev_attr.attr.owner = THIS_MODULE;
 		regulator->dev_attr.attr.mode = 0444;
 		regulator->dev_attr.show = device_requested_uA_show;
+		sysfs_attr_init(&regulator->dev_attr.attr);
 		err = device_create_file(dev, &regulator->dev_attr);
 		if (err < 0) {
 			printk(KERN_WARNING "%s: could not add regulator_dev"
-- 
1.6.3.3


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-03-17 23:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-12 17:16 [PATCH] regulator: Get rid of lockdep warning Ameya Palande
2010-03-12 17:21 ` Mark Brown
2010-03-12 18:09   ` [PATCHv2] " Ameya Palande
2010-03-14 20:09     ` Mark Brown
2010-03-17 23:06     ` Liam Girdwood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®