Patchwork [1/2] MTD: SM_FTL: initialize sysfs attributes This is new requirement in 2.6.34

login
register
mail settings
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 Accepted
Commit ca7081d96e39ea276892f0577f9cf37568547e88
Headers show

Comments

Maxim Levitsky - March 19, 2010, 3:22 p.m.
Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
---
 drivers/mtd/sm_ftl.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

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";