projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
329f905
)
mtd: sm_ftl: initialize sysfs attributes
author
Maxim Levitsky
<maximlevitsky@gmail.com>
Fri, 19 Mar 2010 15:22:53 +0000
(17:22 +0200)
committer
David Woodhouse
<David.Woodhouse@intel.com>
Fri, 26 Mar 2010 15:04:15 +0000
(15:04 +0000)
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>
drivers/mtd/sm_ftl.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mtd/sm_ftl.c
b/drivers/mtd/sm_ftl.c
index 9fb56c76ae899560bc30c94e2fb683d7f879e01b..2e7307d60af5de0dda0f611c2aea9ec5c5df033e 100644
(file)
--- 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";