From: Mark Brown Date: Thu, 1 Aug 2013 10:02:47 +0000 (+0100) Subject: ASoC: samsung: Make secondary I2S DAI device a child of primary X-Git-Tag: firefly_0821_release~176^2~4889^2~170^2~1^2~11 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2f6f0ffb2b073a0a5a9ffe5705b8e8cc43558d3a;p=firefly-linux-kernel-4.4.55.git ASoC: samsung: Make secondary I2S DAI device a child of primary More for neatness than for any great utility. Really we shouldn't be creating the child device at all, refactoring will follow. Signed-off-by: Mark Brown --- diff --git a/sound/soc/samsung/i2s.c b/sound/soc/samsung/i2s.c index 973735841a05..849ac0e225ca 100644 --- a/sound/soc/samsung/i2s.c +++ b/sound/soc/samsung/i2s.c @@ -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)