mtd: sm_ftl: initialize sysfs attributes

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Fri Mar 26 11:59:02 EDT 2010


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=ca7081d96e39ea276892f0577f9cf37568547e88
Commit:     ca7081d96e39ea276892f0577f9cf37568547e88
Parent:     329f9052dbadf6f4afe2231668bd00c579a4aa10
Author:     Maxim Levitsky <maximlevitsky at gmail.com>
AuthorDate: Fri Mar 19 17:22:53 2010 +0200
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Fri Mar 26 15:04:15 2010 +0000

    mtd: sm_ftl: initialize sysfs attributes
    
    This is new requirement in 2.6.34
    
    Signed-off-by: Maxim Levitsky <maximlevitsky at gmail.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 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 9fb56c7..2e7307d 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)
 	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";



More information about the linux-mtd-cvs mailing list