diff options
author | Maxim Levitsky <maximlevitsky@gmail.com> | 2010-03-19 11:22:53 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2010-03-26 11:04:15 -0400 |
commit | ca7081d96e39ea276892f0577f9cf37568547e88 (patch) | |
tree | 4090edd0e8689e31a87c0e33dc35d520ca1331dd /drivers/mtd/sm_ftl.c | |
parent | 329f9052dbadf6f4afe2231668bd00c579a4aa10 (diff) |
mtd: sm_ftl: initialize sysfs attributes
This is new requirement in 2.6.34
Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/sm_ftl.c')
-rw-r--r-- | drivers/mtd/sm_ftl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/sm_ftl.c b/drivers/mtd/sm_ftl.c index 9fb56c76ae89..2e7307d60af5 100644 --- a/drivers/mtd/sm_ftl.c +++ b/drivers/mtd/sm_ftl.c | |||
@@ -72,6 +72,8 @@ struct attribute_group *sm_create_sysfs_attributes(struct sm_ftl *ftl) | |||
72 | vendor_attribute = | 72 | vendor_attribute = |
73 | kzalloc(sizeof(struct sm_sysfs_attribute), GFP_KERNEL); | 73 | kzalloc(sizeof(struct sm_sysfs_attribute), GFP_KERNEL); |
74 | 74 | ||
75 | sysfs_attr_init(&vendor_attribute->dev_attr.attr); | ||
76 | |||
75 | vendor_attribute->data = vendor; | 77 | vendor_attribute->data = vendor; |
76 | vendor_attribute->len = vendor_len; | 78 | vendor_attribute->len = vendor_len; |
77 | vendor_attribute->dev_attr.attr.name = "vendor"; | 79 | vendor_attribute->dev_attr.attr.name = "vendor"; |