diff options
Diffstat (limited to 'sound/pci/ac97/ac97_codec.c')
-rw-r--r-- | sound/pci/ac97/ac97_codec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/ac97/ac97_codec.c b/sound/pci/ac97/ac97_codec.c index 600e053dfd35..5501f4440c92 100644 --- a/sound/pci/ac97/ac97_codec.c +++ b/sound/pci/ac97/ac97_codec.c | |||
@@ -1829,7 +1829,7 @@ static int snd_ac97_dev_register(snd_device_t *device) | |||
1829 | ac97->dev.parent = ac97->bus->card->dev; | 1829 | ac97->dev.parent = ac97->bus->card->dev; |
1830 | ac97->dev.platform_data = ac97; | 1830 | ac97->dev.platform_data = ac97; |
1831 | ac97->dev.release = ac97_device_release; | 1831 | ac97->dev.release = ac97_device_release; |
1832 | strncpy(ac97->dev.bus_id, snd_ac97_get_short_name(ac97), BUS_ID_SIZE); | 1832 | snprintf(ac97->dev.bus_id, BUS_ID_SIZE, "card%d-%d", ac97->bus->card->number, ac97->num); |
1833 | if ((err = device_register(&ac97->dev)) < 0) { | 1833 | if ((err = device_register(&ac97->dev)) < 0) { |
1834 | snd_printk(KERN_ERR "Can't register ac97 bus\n"); | 1834 | snd_printk(KERN_ERR "Can't register ac97 bus\n"); |
1835 | ac97->dev.bus = NULL; | 1835 | ac97->dev.bus = NULL; |