Skip to contentSkip to conversation

ASoC: samsung: Make secondary I2S DAI device a child of primary

PATCH New Mark Brown 1 participant 1 message Aug 1, 2013

Subsystems (4)
lore
Share & tools
lore

Mark Brown

author maintainer
#0 lore raw

PATCH 1/1 ASoC: samsung: Make secondary I2S DAI device a child of primary

From: Mark Brown <[email protected]>

More for neatness than for any great utility. Really we shouldn't be creating the child device at all, refactoring will follow.

---
 sound/soc/samsung/i2s.c | 2 ++
 1 file changed, 2 insertions(+)
sound/soc/samsung/i2s.c +2 -0
index a3e4b49..47e08dd 100644
@@ -1019,6 +1019,8 @@ static struct i2s_dai *i2s_alloc_dai(struct platform_device *pdev, bool sec)
 		if (IS_ERR(i2s->pdev))
 			return NULL;
 
+		i2s->pdev->dev.parent = &pdev->dev;
+
 		platform_set_drvdata(i2s->pdev, i2s);
 		ret = platform_device_add(i2s->pdev);
 		if (ret < 0)
Signature · 1 line
1.8.3.2