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
|
|
@ -609,11 +609,11 @@ static int __devinit snd_aica_probe(struct platform_device *devptr)
|
|||
dreamcastcard = kmalloc(sizeof(struct snd_card_aica), GFP_KERNEL);
|
||||
if (unlikely(!dreamcastcard))
|
||||
return -ENOMEM;
|
||||
dreamcastcard->card =
|
||||
snd_card_new(index, SND_AICA_DRIVER, THIS_MODULE, 0);
|
||||
if (unlikely(!dreamcastcard->card)) {
|
||||
err = snd_card_create(index, SND_AICA_DRIVER, THIS_MODULE, 0,
|
||||
&dreamcastcard->card);
|
||||
if (unlikely(err < 0)) {
|
||||
kfree(dreamcastcard);
|
||||
return -ENODEV;
|
||||
return err;
|
||||
}
|
||||
strcpy(dreamcastcard->card->driver, "snd_aica");
|
||||
strcpy(dreamcastcard->card->shortname, SND_AICA_DRIVER);
|
||||
|
|
|
|||
Loading…
Reference in a new issue