aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorTimur Tabi <timur@freescale.com>2011-11-14 16:35:26 -0600
committerGreg Kroah-Hartman <gregkh@suse.de>2011-12-09 08:52:26 -0800
commit289c76ba6ee33daff3217881f0f4a63743ad41ab (patch)
treefe217af696e78e258dcae183bd4ea48475d8a499 /sound
parent5599ae9741c55721765932bb9babead9b71e172b (diff)
downloadkernel_samsung_smdk4412-289c76ba6ee33daff3217881f0f4a63743ad41ab.zip
kernel_samsung_smdk4412-289c76ba6ee33daff3217881f0f4a63743ad41ab.tar.gz
kernel_samsung_smdk4412-289c76ba6ee33daff3217881f0f4a63743ad41ab.tar.bz2
ASoC: fsl_ssi: properly initialize the sysfs attribute object
commit 0f768a7235d3dfb6f4833030a95a06419df089cb upstream. 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 <timur@freescale.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/fsl/fsl_ssi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c
index 313e0cc..bd811a0 100644
--- a/sound/soc/fsl/fsl_ssi.c
+++ b/sound/soc/fsl/fsl_ssi.c
@@ -698,6 +698,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;