mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
sound: struct device - replace bus_id with dev_name(), dev_set_name()
Acked-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-By: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
366840d7e1
commit
096a957169
1 changed files with 3 additions and 3 deletions
|
@ -1927,7 +1927,7 @@ static int snd_ac97_dev_register(struct snd_device *device)
|
|||
ac97->dev.bus = &ac97_bus_type;
|
||||
ac97->dev.parent = ac97->bus->card->dev;
|
||||
ac97->dev.release = ac97_device_release;
|
||||
snprintf(ac97->dev.bus_id, BUS_ID_SIZE, "%d-%d:%s",
|
||||
dev_set_name(&ac97->dev, "%d-%d:%s",
|
||||
ac97->bus->card->number, ac97->num,
|
||||
snd_ac97_get_short_name(ac97));
|
||||
if ((err = device_register(&ac97->dev)) < 0) {
|
||||
|
|
Loading…
Reference in a new issue