aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r--sound/soc/soc-core.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index a477e218aa28..c1a4cf480c72 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -1926,9 +1926,11 @@ static void snd_soc_instantiate_card(struct snd_soc_card *card)
1926 card->num_dapm_routes); 1926 card->num_dapm_routes);
1927 1927
1928 snprintf(card->snd_card->shortname, sizeof(card->snd_card->shortname), 1928 snprintf(card->snd_card->shortname, sizeof(card->snd_card->shortname),
1929 "%s", card->name);
1930 snprintf(card->snd_card->longname, sizeof(card->snd_card->longname),
1931 "%s", card->name); 1929 "%s", card->name);
1930 snprintf(card->snd_card->longname, sizeof(card->snd_card->longname),
1931 "%s", card->long_name ? card->long_name : card->name);
1932 snprintf(card->snd_card->driver, sizeof(card->snd_card->driver),
1933 "%s", card->driver_name);
1932 1934
1933 if (card->late_probe) { 1935 if (card->late_probe) {
1934 ret = card->late_probe(card); 1936 ret = card->late_probe(card);