projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54dc6ca
)
ASoC: fsl_ssi: properly initialize the sysfs attribute object
author
Timur Tabi
<
[email protected]
>
Mon, 14 Nov 2011 22:35:26 +0000
(16:35 -0600)
committer
Mark Brown
<
[email protected]
>
Tue, 15 Nov 2011 11:59:09 +0000
(11:59 +0000)
Commit
6992f533
("sysfs: Use one lockdep class per sysfs attribute")
requires 'struct attribute' objects to be initialized with sysfs_attr_init().
Signed-off-by: Timur Tabi <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
Cc:
[email protected]
sound/soc/fsl/fsl_ssi.c
patch
|
blob
|
history
diff --git
a/sound/soc/fsl/fsl_ssi.c
b/sound/soc/fsl/fsl_ssi.c
index 0268cf989736f303a224fbd26b0db2e8bf97f2ed..83c4bd5b2dd76bbf3f401c5a6bf0159d337f29b4 100644
(file)
--- a/
sound/soc/fsl/fsl_ssi.c
+++ b/
sound/soc/fsl/fsl_ssi.c
@@
-694,6
+694,7
@@
static int __devinit fsl_ssi_probe(struct platform_device *pdev)
/* Initialize the the device_attribute structure */
dev_attr = &ssi_private->dev_attr;
+ sysfs_attr_init(&dev_attr->attr);
dev_attr->attr.name = "statistics";
dev_attr->attr.mode = S_IRUGO;
dev_attr->show = fsl_sysfs_ssi_show;