Skip to content

Commit

Permalink
memstick: init sysfs attributes
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
maximlevitsky authored and torvalds committed Aug 12, 2010
1 parent fec4dcc commit 21fd049
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/memstick/core/mspro_block.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 21fd049

Please sign in to comment.