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>
This commit is contained in:
Takashi Iwai
2008-12-28 16:45:02 +01:00
committed by Takashi Iwai
parent e58de7baf7
commit bd7dd77c2a
31 changed files with 111 additions and 103 deletions

View File

@ -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;