diff options
Diffstat (limited to 'sound/aoa/core/alsa.c')
-rw-r--r-- | sound/aoa/core/alsa.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sound/aoa/core/alsa.c b/sound/aoa/core/alsa.c index 617850463582..0fa3855b4790 100644 --- a/sound/aoa/core/alsa.c +++ b/sound/aoa/core/alsa.c | |||
@@ -23,9 +23,10 @@ int aoa_alsa_init(char *name, struct module *mod, struct device *dev) | |||
23 | /* cannot be EEXIST due to usage in aoa_fabric_register */ | 23 | /* cannot be EEXIST due to usage in aoa_fabric_register */ |
24 | return -EBUSY; | 24 | return -EBUSY; |
25 | 25 | ||
26 | alsa_card = snd_card_new(index, name, mod, sizeof(struct aoa_card)); | 26 | err = snd_card_create(index, name, mod, sizeof(struct aoa_card), |
27 | if (!alsa_card) | 27 | &alsa_card); |
28 | return -ENOMEM; | 28 | if (err < 0) |
29 | return err; | ||
29 | aoa_card = alsa_card->private_data; | 30 | aoa_card = alsa_card->private_data; |
30 | aoa_card->alsa_card = alsa_card; | 31 | aoa_card->alsa_card = alsa_card; |
31 | alsa_card->dev = dev; | 32 | alsa_card->dev = dev; |