All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: fsl_ssi: properly initialize the sysfs attribute object
@ 2011-11-14 22:35 Timur Tabi
  2011-11-15 11:59 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Timur Tabi @ 2011-11-14 22:35 UTC (permalink / raw)
  To: broonie, lrg, alsa-devel

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>
---
 sound/soc/fsl/fsl_ssi.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c
index 0268cf9..83c4bd5 100644
--- 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;
-- 
1.7.3.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ASoC: fsl_ssi: properly initialize the sysfs attribute object
  2011-11-14 22:35 [PATCH] ASoC: fsl_ssi: properly initialize the sysfs attribute object Timur Tabi
@ 2011-11-15 11:59 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2011-11-15 11:59 UTC (permalink / raw)
  To: Timur Tabi; +Cc: alsa-devel, lrg

On Mon, Nov 14, 2011 at 04:35:26PM -0600, Timur Tabi wrote:
> 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).

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-11-15 11:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-14 22:35 [PATCH] ASoC: fsl_ssi: properly initialize the sysfs attribute object Timur Tabi
2011-11-15 11:59 ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.