aboutsummaryrefslogtreecommitdiffstats
path: root/sound/ppc/pmac.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/ppc/pmac.c')
-rw-r--r--sound/ppc/pmac.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/ppc/pmac.c b/sound/ppc/pmac.c
index c89e82eb06a6..e35b48d29c45 100644
--- a/sound/ppc/pmac.c
+++ b/sound/ppc/pmac.c
@@ -988,6 +988,7 @@ static int __init snd_pmac_detect(pmac_t *chip)
988 case 0x33: 988 case 0x33:
989 case 0x29: 989 case 0x29:
990 case 0x24: 990 case 0x24:
991 case 0x5c:
991 chip->num_freqs = ARRAY_SIZE(tumbler_freqs); 992 chip->num_freqs = ARRAY_SIZE(tumbler_freqs);
992 chip->model = PMAC_SNAPPER; 993 chip->model = PMAC_SNAPPER;
993 chip->can_byte_swap = 0; /* FIXME: check this */ 994 chip->can_byte_swap = 0; /* FIXME: check this */
@@ -1159,7 +1160,7 @@ int __init snd_pmac_new(snd_card_t *card, pmac_t **chip_return)
1159 snd_runtime_check(chip_return, return -EINVAL); 1160 snd_runtime_check(chip_return, return -EINVAL);
1160 *chip_return = NULL; 1161 *chip_return = NULL;
1161 1162
1162 chip = kcalloc(1, sizeof(*chip), GFP_KERNEL); 1163 chip = kzalloc(sizeof(*chip), GFP_KERNEL);
1163 if (chip == NULL) 1164 if (chip == NULL)
1164 return -ENOMEM; 1165 return -ENOMEM;
1165 chip->card = card; 1166 chip->card = card;