projects/linux·commit 21fd0495

memstick: init sysfs attributes

21fd0495 · Maxim Levitsky <[email protected]> · 2010-08-11 14:17:52 -07:00

Otherwise lockdep complains.

Signed-off-by: Maxim Levitsky <[email protected]>
Cc: Alex Dubov <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
21fd0495ea61d53e0ebe575330e343ce4e6d2a61
Parents
fec4dcce

Changes

1 files changed · +1 −0

FileStatusAddDelContent
drivers/memstick/core/mspro_block.cmodified+1−0View file

drivers/memstick/core/mspro_block.c

View file
diff --git a/drivers/memstick/core/mspro_block.c b/drivers/memstick/core/mspro_block.c
index eef78a0..aa5ac6e 100644
--- a/drivers/memstick/core/mspro_block.c
+++ b/drivers/memstick/core/mspro_block.c
@@ -1048,6 +1048,7 @@ static int mspro_block_read_attributes(struct memstick_dev *card)
snprintf(s_attr->name, sizeof(s_attr->name),
"attr_x%02x", attr->entries[cnt].id);
+ sysfs_attr_init(&s_attr->dev_attr.attr);
s_attr->dev_attr.attr.name = s_attr->name;
s_attr->dev_attr.attr.mode = S_IRUGO;
s_attr->dev_attr.show = mspro_block_attr_show(s_attr->id);