summaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorSongjun Wu <songjun.wu@atmel.com>2016-03-02 12:15:25 +0100
committerMark Brown <broonie@kernel.org>2016-03-02 23:43:11 +0900
commitc706f2e55f04d25d212e34186521a38e8a6e459e (patch)
treecd79582d64aa18ea89da3950781eb68b5abc8e77 /drivers/misc
parent92e963f50fc74041b5e9e744c330dca48e04f08d (diff)
downloadlinux-c706f2e55f04d25d212e34186521a38e8a6e459e.tar.bz2
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')
-rw-r--r--drivers/misc/atmel-ssc.c1
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;
}