Skip to contentSkip to conversation

ASoC: zte: Fix missing dev in devm operation

PATCH New Mark Brown 1 participant 1 message Jun 4, 2015

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author maintainer
#0 lore raw

PATCH 1/1 ASoC: zte: Fix missing dev in devm operation

---
 sound/soc/zte/zx296702-spdif.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/zte/zx296702-spdif.c +1 -1
index 4a93bca232ff..11a0e46a1156 100644
@@ -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;
 
Signature · 1 line
2.1.4