Commit 2f6f0ffb authored by Mark Brown's avatar Mark Brown

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: default avatarMark Brown <broonie@linaro.org>
parent d30c148b
...@@ -1019,6 +1019,8 @@ static struct i2s_dai *i2s_alloc_dai(struct platform_device *pdev, bool sec) ...@@ -1019,6 +1019,8 @@ static struct i2s_dai *i2s_alloc_dai(struct platform_device *pdev, bool sec)
if (IS_ERR(i2s->pdev)) if (IS_ERR(i2s->pdev))
return NULL; return NULL;
i2s->pdev->dev.parent = &pdev->dev;
platform_set_drvdata(i2s->pdev, i2s); platform_set_drvdata(i2s->pdev, i2s);
ret = platform_device_add(i2s->pdev); ret = platform_device_add(i2s->pdev);
if (ret < 0) if (ret < 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment