ALSA: Convert to snd_card_create() in other sound/*
Convert from snd_card_new() to the new snd_card_create() function in other sound subdirectories. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Tento commit je obsažen v:
@@ -58,9 +58,9 @@ static int __init snd_pmac_probe(struct platform_device *devptr)
|
||||
char *name_ext;
|
||||
int err;
|
||||
|
||||
card = snd_card_new(index, id, THIS_MODULE, 0);
|
||||
if (card == NULL)
|
||||
return -ENOMEM;
|
||||
err = snd_card_create(index, id, THIS_MODULE, 0, &card);
|
||||
if (err < 0)
|
||||
return err;
|
||||
|
||||
if ((err = snd_pmac_new(card, &chip)) < 0)
|
||||
goto __error;
|
||||
|
@@ -969,11 +969,9 @@ static int __init snd_ps3_driver_probe(struct ps3_system_bus_device *dev)
|
||||
}
|
||||
|
||||
/* create card instance */
|
||||
the_card.card = snd_card_new(index, id, THIS_MODULE, 0);
|
||||
if (!the_card.card) {
|
||||
ret = -ENXIO;
|
||||
ret = snd_card_create(index, id, THIS_MODULE, 0, &the_card.card);
|
||||
if (ret < 0)
|
||||
goto clean_irq;
|
||||
}
|
||||
|
||||
strcpy(the_card.card->driver, "PS3");
|
||||
strcpy(the_card.card->shortname, "PS3");
|
||||
|
Odkázat v novém úkolu
Zablokovat Uživatele