projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d30c148
)
ASoC: samsung: Make secondary I2S DAI device a child of primary
author
Mark Brown
<broonie@linaro.org>
Thu, 1 Aug 2013 10:02:47 +0000
(11:02 +0100)
committer
Mark Brown
<broonie@linaro.org>
Thu, 1 Aug 2013 11:01:29 +0000
(12:01 +0100)
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 <broonie@linaro.org>
sound/soc/samsung/i2s.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/samsung/i2s.c
b/sound/soc/samsung/i2s.c
index 973735841a053eafa3dce3c3124a722c5a75147d..849ac0e225caa5de5455d5dc867076405ba1346b 100644
(file)
--- 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)