diff options
author | Songjun Wu <songjun.wu@atmel.com> | 2016-03-02 06:15:25 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-03-02 09:43:11 -0500 |
commit | c706f2e55f04d25d212e34186521a38e8a6e459e (patch) | |
tree | cd79582d64aa18ea89da3950781eb68b5abc8e77 /drivers/misc/atmel-ssc.c | |
parent | 92e963f50fc74041b5e9e744c330dca48e04f08d (diff) |
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) | |||
34 | if (ssc->pdev->dev.of_node) { | 34 | if (ssc->pdev->dev.of_node) { |
35 | if (of_alias_get_id(ssc->pdev->dev.of_node, "ssc") | 35 | if (of_alias_get_id(ssc->pdev->dev.of_node, "ssc") |
36 | == ssc_num) { | 36 | == ssc_num) { |
37 | ssc->pdev->id = ssc_num; | ||
37 | ssc_valid = 1; | 38 | ssc_valid = 1; |
38 | break; | 39 | break; |
39 | } | 40 | } |