diff options
Diffstat (limited to 'sound/sparc/amd7930.c')
-rw-r--r-- | sound/sparc/amd7930.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sound/sparc/amd7930.c b/sound/sparc/amd7930.c index 7cbc725934e5..574af56ba8a6 100644 --- a/sound/sparc/amd7930.c +++ b/sound/sparc/amd7930.c | |||
@@ -1019,9 +1019,10 @@ static int __devinit amd7930_sbus_probe(struct of_device *op, const struct of_de | |||
1019 | return -ENOENT; | 1019 | return -ENOENT; |
1020 | } | 1020 | } |
1021 | 1021 | ||
1022 | card = snd_card_new(index[dev_num], id[dev_num], THIS_MODULE, 0); | 1022 | err = snd_card_create(index[dev_num], id[dev_num], THIS_MODULE, 0, |
1023 | if (card == NULL) | 1023 | &card); |
1024 | return -ENOMEM; | 1024 | if (err < 0) |
1025 | return err; | ||
1025 | 1026 | ||
1026 | strcpy(card->driver, "AMD7930"); | 1027 | strcpy(card->driver, "AMD7930"); |
1027 | strcpy(card->shortname, "Sun AMD7930"); | 1028 | strcpy(card->shortname, "Sun AMD7930"); |