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
|
|
@ -965,12 +965,11 @@ static int __devinit snd_at73c213_probe(struct spi_device *spi)
|
|||
return PTR_ERR(board->dac_clk);
|
||||
}
|
||||
|
||||
retval = -ENOMEM;
|
||||
|
||||
/* Allocate "card" using some unused identifiers. */
|
||||
snprintf(id, sizeof id, "at73c213_%d", board->ssc_id);
|
||||
card = snd_card_new(-1, id, THIS_MODULE, sizeof(struct snd_at73c213));
|
||||
if (!card)
|
||||
retval = snd_card_create(-1, id, THIS_MODULE,
|
||||
sizeof(struct snd_at73c213), &card);
|
||||
if (retval < 0)
|
||||
goto out;
|
||||
|
||||
chip = card->private_data;
|
||||
|
|
|
|||
Loading…
Reference in a new issue