summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/samsung/odroidx2_max98090.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/soc/samsung/odroidx2_max98090.c b/sound/soc/samsung/odroidx2_max98090.c
index 1e5f09b2ca6..6a83f609691 100644
--- a/sound/soc/samsung/odroidx2_max98090.c
+++ b/sound/soc/samsung/odroidx2_max98090.c
@@ -70,7 +70,6 @@ static struct snd_soc_dai_link odroidx2_dai[] = {
};
static struct snd_soc_card odroidx2 = {
- .name = "odroidx2",
.owner = THIS_MODULE,
.dai_link = odroidx2_dai,
.num_links = ARRAY_SIZE(odroidx2_dai),
@@ -84,6 +83,10 @@ static int odroidx2_audio_probe(struct platform_device *pdev)
card->dev = &pdev->dev;
+ ret = snd_soc_of_parse_card_name(card, "samsung,model");
+ if (ret < 0)
+ return ret;
+
odroidx2_dai[0].codec_of_node = of_parse_phandle(np,
"samsung,audio-codec", 0);
if (!odroidx2_dai[0].codec_of_node) {