summaryrefslogtreecommitdiffstats
path: root/sound/ppc/awacs.c
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2006-08-07 06:43:17 -0400
committerJeff Garzik <jeff@garzik.org>2006-08-07 06:43:17 -0400
commit38ebb1e0ed214efe124534eba4a34e869a0d8da7 (patch)
tree3712611527654e81109d194d903401c86763e3f4 /sound/ppc/awacs.c
parent236a686b56428a8967a057a2396f9be74e2ee652 (diff)
parent9f737633e6ee54fc174282d49b2559bd2208391d (diff)
downloadop-kernel-dev-38ebb1e0ed214efe124534eba4a34e869a0d8da7.zip
op-kernel-dev-38ebb1e0ed214efe124534eba4a34e869a0d8da7.tar.gz
Merge branch 'master' into upstream
Diffstat (limited to 'sound/ppc/awacs.c')
-rw-r--r--sound/ppc/awacs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/ppc/awacs.c b/sound/ppc/awacs.c
index 82d791b..05dabe4 100644
--- a/sound/ppc/awacs.c
+++ b/sound/ppc/awacs.c
@@ -801,11 +801,10 @@ snd_pmac_awacs_init(struct snd_pmac *chip)
chip->revision = (in_le32(&chip->awacs->codec_stat) >> 12) & 0xf;
#ifdef PMAC_AMP_AVAIL
if (chip->revision == 3 && chip->has_iic && CHECK_CUDA_AMP()) {
- struct awacs_amp *amp = kmalloc(sizeof(*amp), GFP_KERNEL);
+ struct awacs_amp *amp = kzalloc(sizeof(*amp), GFP_KERNEL);
if (! amp)
return -ENOMEM;
chip->mixer_data = amp;
- memset(amp, 0, sizeof(*amp));
chip->mixer_free = awacs_amp_free;
awacs_amp_set_vol(amp, 0, 63, 63, 0); /* mute and zero vol */
awacs_amp_set_vol(amp, 1, 63, 63, 0);
OpenPOWER on IntegriCloud