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>
This commit is contained in:

committed by
Takashi Iwai

parent
53fb1e6359
commit
c95eadd2f1
@@ -95,9 +95,9 @@ static int __devinit snd_cs4231_probe(struct device *dev, unsigned int n)
|
||||
struct snd_pcm *pcm;
|
||||
int error;
|
||||
|
||||
card = snd_card_new(index[n], id[n], THIS_MODULE, 0);
|
||||
if (!card)
|
||||
return -EINVAL;
|
||||
error = snd_card_create(index[n], id[n], THIS_MODULE, 0, &card);
|
||||
if (error < 0)
|
||||
return error;
|
||||
|
||||
error = snd_wss_create(card, port[n], -1, irq[n], dma1[n], dma2[n],
|
||||
WSS_HW_DETECT, 0, &chip);
|
||||
|
@@ -385,10 +385,11 @@ static void snd_card_cs4236_free(struct snd_card *card)
|
||||
static struct snd_card *snd_cs423x_card_new(int dev)
|
||||
{
|
||||
struct snd_card *card;
|
||||
int err;
|
||||
|
||||
card = snd_card_new(index[dev], id[dev], THIS_MODULE,
|
||||
sizeof(struct snd_card_cs4236));
|
||||
if (card == NULL)
|
||||
err = snd_card_create(index[dev], id[dev], THIS_MODULE,
|
||||
sizeof(struct snd_card_cs4236), &card);
|
||||
if (err < 0)
|
||||
return NULL;
|
||||
card->private_free = snd_card_cs4236_free;
|
||||
return card;
|
||||
|
Reference in New Issue
Block a user