diff options
author | Takashi Iwai <tiwai@alsa3.local> | 2008-12-28 10:43:35 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-01-12 09:20:26 -0500 |
commit | c95eadd2f1afd2ba643e85a8dfc9079a3f03ae47 (patch) | |
tree | 1fb2defba2bf3d4c299395b0f46d7902eb3b51ba /sound/isa/sb/sb16.c | |
parent | 53fb1e63599438bd5f6fbb852023d80916d83983 (diff) |
ALSA: Convert to snd_card_create() in sound/isa/*
Convert from snd_card_new() to the new snd_card_create() function.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/isa/sb/sb16.c')
-rw-r--r-- | sound/isa/sb/sb16.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sound/isa/sb/sb16.c b/sound/isa/sb/sb16.c index 2c201f78ce50..adf4fdd2c4aa 100644 --- a/sound/isa/sb/sb16.c +++ b/sound/isa/sb/sb16.c | |||
@@ -326,9 +326,12 @@ static void snd_sb16_free(struct snd_card *card) | |||
326 | 326 | ||
327 | static struct snd_card *snd_sb16_card_new(int dev) | 327 | static struct snd_card *snd_sb16_card_new(int dev) |
328 | { | 328 | { |
329 | struct snd_card *card = snd_card_new(index[dev], id[dev], THIS_MODULE, | 329 | struct snd_card *card; |
330 | sizeof(struct snd_card_sb16)); | 330 | int err; |
331 | if (card == NULL) | 331 | |
332 | err = snd_card_create(index[dev], id[dev], THIS_MODULE, | ||
333 | sizeof(struct snd_card_sb16), &card); | ||
334 | if (err < 0) | ||
332 | return NULL; | 335 | return NULL; |
333 | card->private_free = snd_sb16_free; | 336 | card->private_free = snd_sb16_free; |
334 | return card; | 337 | return card; |