mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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 <[email protected]>
This commit is contained in:
parent
e58de7baf7
commit
bd7dd77c2a
31 changed files with 111 additions and 103 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue