diff options
Diffstat (limited to 'sound/sh')
-rw-r--r-- | sound/sh/aica.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/sh/aica.c b/sound/sh/aica.c index 7c920f3e7fe3..f551233c5a08 100644 --- a/sound/sh/aica.c +++ b/sound/sh/aica.c | |||
@@ -609,11 +609,11 @@ static int __devinit snd_aica_probe(struct platform_device *devptr) | |||
609 | dreamcastcard = kmalloc(sizeof(struct snd_card_aica), GFP_KERNEL); | 609 | dreamcastcard = kmalloc(sizeof(struct snd_card_aica), GFP_KERNEL); |
610 | if (unlikely(!dreamcastcard)) | 610 | if (unlikely(!dreamcastcard)) |
611 | return -ENOMEM; | 611 | return -ENOMEM; |
612 | dreamcastcard->card = | 612 | err = snd_card_create(index, SND_AICA_DRIVER, THIS_MODULE, 0, |
613 | snd_card_new(index, SND_AICA_DRIVER, THIS_MODULE, 0); | 613 | &dreamcastcard->card); |
614 | if (unlikely(!dreamcastcard->card)) { | 614 | if (unlikely(err < 0)) { |
615 | kfree(dreamcastcard); | 615 | kfree(dreamcastcard); |
616 | return -ENODEV; | 616 | return err; |
617 | } | 617 | } |
618 | strcpy(dreamcastcard->card->driver, "snd_aica"); | 618 | strcpy(dreamcastcard->card->driver, "snd_aica"); |
619 | strcpy(dreamcastcard->card->shortname, SND_AICA_DRIVER); | 619 | strcpy(dreamcastcard->card->shortname, SND_AICA_DRIVER); |