ALSA: Convert to snd_card_create() in sound/pci/*
Convert from snd_card_new() to the new snd_card_create() function in sound/pci/*. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Этот коммит содержится в:

коммит произвёл
Takashi Iwai

родитель
c95eadd2f1
Коммит
e58de7baf7
@@ -1365,12 +1365,12 @@ static int __devinit snd_mixart_probe(struct pci_dev *pci,
|
||||
else
|
||||
idx = index[dev] + i;
|
||||
snprintf(tmpid, sizeof(tmpid), "%s-%d", id[dev] ? id[dev] : "MIXART", i);
|
||||
card = snd_card_new(idx, tmpid, THIS_MODULE, 0);
|
||||
err = snd_card_create(idx, tmpid, THIS_MODULE, 0, &card);
|
||||
|
||||
if (! card) {
|
||||
if (err < 0) {
|
||||
snd_printk(KERN_ERR "cannot allocate the card %d\n", i);
|
||||
snd_mixart_free(mgr);
|
||||
return -ENOMEM;
|
||||
return err;
|
||||
}
|
||||
|
||||
strcpy(card->driver, CARD_NAME);
|
||||
|
Ссылка в новой задаче
Block a user