[PATCH 1/2] MTD: SM_FTL: initialize sysfs attributes This is new requirement in 2.6.34
Maxim Levitsky
maximlevitsky at gmail.com
Fri Mar 19 11:22:53 EDT 2010
Signed-off-by: Maxim Levitsky <maximlevitsky at gmail.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 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";
--
1.6.3.3
More information about the linux-mtd
mailing list