diff options
author | Maxim Levitsky <maximlevitsky@gmail.com> | 2010-08-11 14:17:52 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-26 16:45:42 -0700 |
commit | da6827e8b0e9b7c43b25396017a5198040cbc2f6 (patch) | |
tree | 212aae13d01cd50c833590f5654ab809b2895515 | |
parent | 6d23f5084c975be637f7d748db82116bf84d3872 (diff) | |
download | kernel-crypto-da6827e8b0e9b7c43b25396017a5198040cbc2f6.tar.gz kernel-crypto-da6827e8b0e9b7c43b25396017a5198040cbc2f6.tar.xz kernel-crypto-da6827e8b0e9b7c43b25396017a5198040cbc2f6.zip |
memstick: init sysfs attributes
commit 21fd0495ea61d53e0ebe575330e343ce4e6d2a61 upstream.
Otherwise lockdep complains.
Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
Cc: Alex Dubov <oakad@yahoo.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-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 8327e248520..369313fa359 100644 --- a/drivers/memstick/core/mspro_block.c +++ b/drivers/memstick/core/mspro_block.c @@ -1040,6 +1040,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); |