Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: zte: Fix missing dev in devm operation
@ 2015-06-04 16:23 Mark Brown
  0 siblings, 0 replies; only message in thread
From: Mark Brown @ 2015-06-04 16:23 UTC (permalink / raw)
  To: Jun Nie; +Cc: alsa-devel, Mark Brown

Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/zte/zx296702-spdif.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/zte/zx296702-spdif.c b/sound/soc/zte/zx296702-spdif.c
index 4a93bca232ff..11a0e46a1156 100644
--- a/sound/soc/zte/zx296702-spdif.c
+++ b/sound/soc/zte/zx296702-spdif.c
@@ -309,7 +309,7 @@ static int zx_spdif_probe(struct platform_device *pdev)
 	struct zx_spdif_info *zx_spdif;
 	int ret;
 
-	zx_spdif = devm_kzalloc(sizeof(*zx_spdif), GFP_KERNEL);
+	zx_spdif = devm_kzalloc(&pdev->dev, sizeof(*zx_spdif), GFP_KERNEL);
 	if (!zx_spdif)
 		return -ENOMEM;
 
-- 
2.1.4

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-06-04 16:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-04 16:23 [PATCH] ASoC: zte: Fix missing dev in devm operation Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox