diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-01-12 09:18:28 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-01-12 09:25:11 -0500 |
commit | 6ff1871617a3ea1eeaf88b42f652f9a311826bad (patch) | |
tree | 5d2cec2f74da364b9648afad7bf35eb4be7a7994 | |
parent | 758021bfa9ea25c58e62d2f68512628b19502ce7 (diff) |
drivers/staging: Convert to snd_card_create() for go7007
Convert from snd_card_new to the new snd_card_create() for go7007.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | drivers/staging/go7007/snd-go7007.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/staging/go7007/snd-go7007.c b/drivers/staging/go7007/snd-go7007.c index a7de401f61ab..cd19be6c00e0 100644 --- a/drivers/staging/go7007/snd-go7007.c +++ b/drivers/staging/go7007/snd-go7007.c | |||
@@ -248,10 +248,11 @@ int go7007_snd_init(struct go7007 *go) | |||
248 | spin_lock_init(&gosnd->lock); | 248 | spin_lock_init(&gosnd->lock); |
249 | gosnd->hw_ptr = gosnd->w_idx = gosnd->avail = 0; | 249 | gosnd->hw_ptr = gosnd->w_idx = gosnd->avail = 0; |
250 | gosnd->capturing = 0; | 250 | gosnd->capturing = 0; |
251 | gosnd->card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); | 251 | ret = snd_card_create(index[dev], id[dev], THIS_MODULE, 0, |
252 | if (gosnd->card == NULL) { | 252 | &gosnd->card); |
253 | if (ret < 0) { | ||
253 | kfree(gosnd); | 254 | kfree(gosnd); |
254 | return -ENOMEM; | 255 | return ret; |
255 | } | 256 | } |
256 | ret = snd_device_new(gosnd->card, SNDRV_DEV_LOWLEVEL, go, | 257 | ret = snd_device_new(gosnd->card, SNDRV_DEV_LOWLEVEL, go, |
257 | &go7007_snd_device_ops); | 258 | &go7007_snd_device_ops); |