aboutsummaryrefslogtreecommitdiffstats
path: root/sound/ppc/tumbler.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/ppc/tumbler.c')
-rw-r--r--sound/ppc/tumbler.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/ppc/tumbler.c b/sound/ppc/tumbler.c
index b94ecd0ebab2..6ae2d5b9aa4a 100644
--- a/sound/ppc/tumbler.c
+++ b/sound/ppc/tumbler.c
@@ -1317,10 +1317,9 @@ int __init snd_pmac_tumbler_init(struct snd_pmac *chip)
1317 request_module("i2c-powermac"); 1317 request_module("i2c-powermac");
1318#endif /* CONFIG_KMOD */ 1318#endif /* CONFIG_KMOD */
1319 1319
1320 mix = kmalloc(sizeof(*mix), GFP_KERNEL); 1320 mix = kzalloc(sizeof(*mix), GFP_KERNEL);
1321 if (! mix) 1321 if (! mix)
1322 return -ENOMEM; 1322 return -ENOMEM;
1323 memset(mix, 0, sizeof(*mix));
1324 mix->headphone_irq = -1; 1323 mix->headphone_irq = -1;
1325 1324
1326 chip->mixer_data = mix; 1325 chip->mixer_data = mix;