diff options
Diffstat (limited to 'sound/mips/au1x00.c')
-rw-r--r-- | sound/mips/au1x00.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sound/mips/au1x00.c b/sound/mips/au1x00.c index 1881cec11e78..3e763d6a5d67 100644 --- a/sound/mips/au1x00.c +++ b/sound/mips/au1x00.c | |||
@@ -636,9 +636,10 @@ au1000_init(void) | |||
636 | struct snd_card *card; | 636 | struct snd_card *card; |
637 | struct snd_au1000 *au1000; | 637 | struct snd_au1000 *au1000; |
638 | 638 | ||
639 | card = snd_card_new(-1, "AC97", THIS_MODULE, sizeof(struct snd_au1000)); | 639 | err = snd_card_create(-1, "AC97", THIS_MODULE, |
640 | if (card == NULL) | 640 | sizeof(struct snd_au1000), &card); |
641 | return -ENOMEM; | 641 | if (err < 0) |
642 | return err; | ||
642 | 643 | ||
643 | card->private_free = snd_au1000_free; | 644 | card->private_free = snd_au1000_free; |
644 | au1000 = card->private_data; | 645 | au1000 = card->private_data; |
@@ -678,7 +679,7 @@ au1000_init(void) | |||
678 | return err; | 679 | return err; |
679 | } | 680 | } |
680 | 681 | ||
681 | printk( KERN_INFO "ALSA AC97: Driver Initialized\n" ); | 682 | printk(KERN_INFO "ALSA AC97: Driver Initialized\n"); |
682 | au1000_card = card; | 683 | au1000_card = card; |
683 | return 0; | 684 | return 0; |
684 | } | 685 | } |