Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Maxim Levitsky and committed by
Linus Torvalds
21fd0495 fec4dcce

+1
+1
drivers/memstick/core/mspro_block.c
··· 1048 1048 snprintf(s_attr->name, sizeof(s_attr->name), 1049 1049 "attr_x%02x", attr->entries[cnt].id); 1050 1050 1051 + sysfs_attr_init(&s_attr->dev_attr.attr); 1051 1052 s_attr->dev_attr.attr.name = s_attr->name; 1052 1053 s_attr->dev_attr.attr.mode = S_IRUGO; 1053 1054 s_attr->dev_attr.show = mspro_block_attr_show(s_attr->id);