Merge remote-tracking branches 'asoc/topic/tdm' and 'asoc/topic/tegra' into asoc...
[linux-2.6-microblaze.git] / sound / soc / soc-core.c
index 318fee8..caebd63 100644 (file)
@@ -1253,7 +1253,7 @@ static int soc_post_component_init(struct snd_soc_card *card,
        struct snd_soc_dai_link *dai_link = NULL;
        struct snd_soc_aux_dev *aux_dev = NULL;
        struct snd_soc_pcm_runtime *rtd;
-       const char *temp, *name;
+       const char *name;
        int ret = 0;
 
        if (!dailess) {
@@ -1267,10 +1267,6 @@ static int soc_post_component_init(struct snd_soc_card *card,
        }
        rtd->card = card;
 
-       /* machine controls, routes and widgets are not prefixed */
-       temp = codec->name_prefix;
-       codec->name_prefix = NULL;
-
        /* do machine specific initialization */
        if (!dailess && dai_link->init)
                ret = dai_link->init(rtd);
@@ -1280,7 +1276,6 @@ static int soc_post_component_init(struct snd_soc_card *card,
                dev_err(card->dev, "ASoC: failed to init %s: %d\n", name, ret);
                return ret;
        }
-       codec->name_prefix = temp;
 
        /* register the rtd device */
        rtd->codec = codec;