diff options
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r-- | sound/soc/soc-core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 00fccdd41bb0..13b4aaff0e9c 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c | |||
@@ -88,8 +88,8 @@ static int soc_ac97_dev_register(struct snd_soc_codec *codec) | |||
88 | codec->ac97->dev.parent = NULL; | 88 | codec->ac97->dev.parent = NULL; |
89 | codec->ac97->dev.release = soc_ac97_device_release; | 89 | codec->ac97->dev.release = soc_ac97_device_release; |
90 | 90 | ||
91 | snprintf(codec->ac97->dev.bus_id, BUS_ID_SIZE, "%d-%d:%s", | 91 | dev_set_name(&codec->ac97->dev, "%d-%d:%s", |
92 | codec->card->number, 0, codec->name); | 92 | codec->card->number, 0, codec->name); |
93 | err = device_register(&codec->ac97->dev); | 93 | err = device_register(&codec->ac97->dev); |
94 | if (err < 0) { | 94 | if (err < 0) { |
95 | snd_printk(KERN_ERR "Can't register ac97 bus\n"); | 95 | snd_printk(KERN_ERR "Can't register ac97 bus\n"); |