diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-04-14 12:25:52 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-04-14 12:25:52 +0200 |
commit | 7852fd08fdc78bf43150137bdbfdfdccdefffe0f (patch) | |
tree | 7ed8ede1574341ee77ef22ab451a026c1b735a7b /sound/pci/lx6464es | |
parent | 02bec490450836ebbd628e97ec03f10b57def8ce (diff) | |
download | linux-7852fd08fdc78bf43150137bdbfdfdccdefffe0f.tar.gz linux-7852fd08fdc78bf43150137bdbfdfdccdefffe0f.tar.bz2 linux-7852fd08fdc78bf43150137bdbfdfdccdefffe0f.zip |
ALSA: lx6464es - Use snd_card_create()
Use snd_card_create() instead of the obsoleted snd_card_new().
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/lx6464es')
-rw-r--r-- | sound/pci/lx6464es/lx6464es.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/pci/lx6464es/lx6464es.c b/sound/pci/lx6464es/lx6464es.c index 7bc8b8caa992..870bfc58c697 100644 --- a/sound/pci/lx6464es/lx6464es.c +++ b/sound/pci/lx6464es/lx6464es.c @@ -1091,9 +1091,9 @@ static int __devinit snd_lx6464es_probe(struct pci_dev *pci, return -ENOENT; } - card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); - if (card == NULL) - return -ENOMEM; + err = snd_card_create(index[dev], id[dev], THIS_MODULE, 0, &card); + if (err < 0) + return err; err = snd_lx6464es_create(card, pci, &chip); if (err < 0) { |