diff options
author | Songjun Wu <songjun.wu@atmel.com> | 2016-03-02 14:15:25 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-03-02 17:43:11 +0300 |
commit | c706f2e55f04d25d212e34186521a38e8a6e459e (patch) | |
tree | cd79582d64aa18ea89da3950781eb68b5abc8e77 /drivers/misc/atmel-ssc.c | |
parent | 92e963f50fc74041b5e9e744c330dca48e04f08d (diff) | |
download | linux-c706f2e55f04d25d212e34186521a38e8a6e459e.tar.xz |
ASoC: atmel_ssc_dai: distinguish the different SSC
Cpu_dai id always equals 0, can't distinguish the
different SSC. Use platform_device id to record
and distinguish the different SSC.
Signed-off-by: Songjun Wu <songjun.wu@atmel.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/misc/atmel-ssc.c')
-rw-r--r-- | drivers/misc/atmel-ssc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/misc/atmel-ssc.c b/drivers/misc/atmel-ssc.c index e11a0bd6c66e..0516ecda54d3 100644 --- a/drivers/misc/atmel-ssc.c +++ b/drivers/misc/atmel-ssc.c @@ -34,6 +34,7 @@ struct ssc_device *ssc_request(unsigned int ssc_num) if (ssc->pdev->dev.of_node) { if (of_alias_get_id(ssc->pdev->dev.of_node, "ssc") == ssc_num) { + ssc->pdev->id = ssc_num; ssc_valid = 1; break; } |