Skip to content

Commit

Permalink
ASoC: fsl_ssi: properly initialize the sysfs attribute object
Browse files Browse the repository at this point in the history
Commit 6992f53 ("sysfs: Use one lockdep class per sysfs attribute")
requires 'struct attribute' objects to be initialized with sysfs_attr_init().

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@kernel.org
  • Loading branch information
Timur Tabi authored and Mark Brown committed Nov 15, 2011
1 parent 54dc6ca commit 0f768a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/soc/fsl/fsl_ssi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0f768a7

Please sign in to comment.