diff options
author | Maxim Levitsky <maximlevitsky@gmail.com> | 2010-08-11 14:17:52 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-12 08:43:31 -0700 |
commit | 21fd0495ea61d53e0ebe575330e343ce4e6d2a61 (patch) | |
tree | a58516439b6f8e81c785edd44cf73596f50ea407 | |
parent | fec4dcce237c7185ff7129e704bc508850b6e3f0 (diff) | |
download | linux-3.10-21fd0495ea61d53e0ebe575330e343ce4e6d2a61.tar.gz linux-3.10-21fd0495ea61d53e0ebe575330e343ce4e6d2a61.tar.bz2 linux-3.10-21fd0495ea61d53e0ebe575330e343ce4e6d2a61.zip |
memstick: init sysfs attributes
Otherwise lockdep complains.
Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
Cc: Alex Dubov <oakad@yahoo.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | drivers/memstick/core/mspro_block.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/memstick/core/mspro_block.c b/drivers/memstick/core/mspro_block.c index eef78a068fd..aa5ac6efd9b 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); |