| Submitter | Maxim Levitsky |
|---|---|
| Date | March 19, 2010, 3:22 p.m. |
| Message ID | <1269012174-5375-1-git-send-email-maximlevitsky@gmail.com> |
| Download | mbox | patch |
| Permalink | /patch/48164/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/drivers/mtd/sm_ftl.c b/drivers/mtd/sm_ftl.c index 812e212..a9b4e34 100644 --- a/drivers/mtd/sm_ftl.c +++ b/drivers/mtd/sm_ftl.c @@ -70,6 +70,8 @@ struct attribute_group *sm_create_sysfs_attributes(struct sm_ftl *ftl) vendor_attribute = kzalloc(sizeof(struct sm_sysfs_attribute), GFP_KERNEL); + sysfs_attr_init(&vendor_attribute->dev_attr.attr); + vendor_attribute->data = vendor; vendor_attribute->len = vendor_len; vendor_attribute->dev_attr.attr.name = "vendor";
Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com> --- drivers/mtd/sm_ftl.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)