projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02bec49
)
ALSA: lx6464es - Use snd_card_create()
author
Takashi Iwai
<tiwai@suse.de>
Tue, 14 Apr 2009 10:25:52 +0000
(12:25 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Tue, 14 Apr 2009 10:25:52 +0000
(12:25 +0200)
Use snd_card_create() instead of the obsoleted snd_card_new().
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/lx6464es/lx6464es.c
patch
|
blob
|
history
diff --git
a/sound/pci/lx6464es/lx6464es.c
b/sound/pci/lx6464es/lx6464es.c
index
7bc8b8c
..
870bfc5
100644
(file)
--- 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) {