Skip to contentSkip to conversation

ASoC: fsl_ssi: properly initialize the sysfs attribute object

PATCH Applied Timur Tabi 2 participants 2 messages Nov 14, 2011 – Nov 15, 2011

Subsystems (3)
lore
Share & tools
lore

Timur Tabi

author
#0 lore raw

PATCH 1/1 ASoC: fsl_ssi: properly initialize the sysfs attribute object

Commit 6992f533 ("sysfs: Use one lockdep class per sysfs attribute") requires 'struct attribute' objects to be initialized with sysfs_attr_init().

---
 sound/soc/fsl/fsl_ssi.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
sound/soc/fsl/fsl_ssi.c +1 -0
index 0268cf9..83c4bd5 100644
@@ -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;
Signature · 1 line
1.7.3.4
Applied
#1 lore raw
Quoted 2 lines · Timur Tabi

Commit 6992f533 ("sysfs: Use one lockdep class per sysfs attribute") requires 'struct attribute' objects to be initialized with sysfs_attr_init().

Applied, thanks (for stable).