diff options
author | Takashi Iwai <tiwai@alsa3.local> | 2008-12-28 10:44:30 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-01-12 09:20:55 -0500 |
commit | e58de7baf7de11f01a675cbbf6ecc8a2758b9ca5 (patch) | |
tree | b0c78267928d5a538b947f1f3f2247e4f63353b0 /sound/pci/ad1889.c | |
parent | c95eadd2f1afd2ba643e85a8dfc9079a3f03ae47 (diff) |
ALSA: Convert to snd_card_create() in sound/pci/*
Convert from snd_card_new() to the new snd_card_create() function
in sound/pci/*.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ad1889.c')
-rw-r--r-- | sound/pci/ad1889.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/pci/ad1889.c b/sound/pci/ad1889.c index a7f38e63303f..d1f242bd0ac5 100644 --- a/sound/pci/ad1889.c +++ b/sound/pci/ad1889.c | |||
@@ -995,10 +995,10 @@ snd_ad1889_probe(struct pci_dev *pci, | |||
995 | } | 995 | } |
996 | 996 | ||
997 | /* (2) */ | 997 | /* (2) */ |
998 | card = snd_card_new(index[devno], id[devno], THIS_MODULE, 0); | 998 | err = snd_card_create(index[devno], id[devno], THIS_MODULE, 0, &card); |
999 | /* XXX REVISIT: we can probably allocate chip in this call */ | 999 | /* XXX REVISIT: we can probably allocate chip in this call */ |
1000 | if (card == NULL) | 1000 | if (err < 0) |
1001 | return -ENOMEM; | 1001 | return err; |
1002 | 1002 | ||
1003 | strcpy(card->driver, "AD1889"); | 1003 | strcpy(card->driver, "AD1889"); |
1004 | strcpy(card->shortname, "Analog Devices AD1889"); | 1004 | strcpy(card->shortname, "Analog Devices AD1889"); |