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>
This commit is contained in:
parent
329f9052db
commit
ca7081d96e
1 changed files with 2 additions and 0 deletions
|
@ -72,6 +72,8 @@ struct attribute_group *sm_create_sysfs_attributes(struct sm_ftl *ftl)
|
||||||
vendor_attribute =
|
vendor_attribute =
|
||||||
kzalloc(sizeof(struct sm_sysfs_attribute), GFP_KERNEL);
|
kzalloc(sizeof(struct sm_sysfs_attribute), GFP_KERNEL);
|
||||||
|
|
||||||
|
sysfs_attr_init(&vendor_attribute->dev_attr.attr);
|
||||||
|
|
||||||
vendor_attribute->data = vendor;
|
vendor_attribute->data = vendor;
|
||||||
vendor_attribute->len = vendor_len;
|
vendor_attribute->len = vendor_len;
|
||||||
vendor_attribute->dev_attr.attr.name = "vendor";
|
vendor_attribute->dev_attr.attr.name = "vendor";
|
||||||
|
|
Loading…
Reference in a new issue