diff options
author | Dave Jones <davej@redhat.com> | 2005-10-20 15:16:15 -0700 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2005-10-20 15:16:15 -0700 |
commit | bfdc708dc7d26fca66df0157b36356a2ba6166eb (patch) | |
tree | 600bcb92a1b11ca99d93d65cace469e40346b3c2 /arch/i386/kernel/cpu/cpufreq/powernow-k8.c | |
parent | b9111b7b7f46b0ec1ccb451d60ec439b92e4df65 (diff) | |
download | op-kernel-dev-bfdc708dc7d26fca66df0157b36356a2ba6166eb.zip op-kernel-dev-bfdc708dc7d26fca66df0157b36356a2ba6166eb.tar.gz |
[CPUFREQ] kzalloc conversions for i386 drivers.
Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'arch/i386/kernel/cpu/cpufreq/powernow-k8.c')
-rw-r--r-- | arch/i386/kernel/cpu/cpufreq/powernow-k8.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/i386/kernel/cpu/cpufreq/powernow-k8.c b/arch/i386/kernel/cpu/cpufreq/powernow-k8.c index e2e03ee..beb1011 100644 --- a/arch/i386/kernel/cpu/cpufreq/powernow-k8.c +++ b/arch/i386/kernel/cpu/cpufreq/powernow-k8.c @@ -976,12 +976,11 @@ static int __init powernowk8_cpu_init(struct cpufreq_policy *pol) if (!check_supported_cpu(pol->cpu)) return -ENODEV; - data = kmalloc(sizeof(struct powernow_k8_data), GFP_KERNEL); + data = kzalloc(sizeof(struct powernow_k8_data), GFP_KERNEL); if (!data) { printk(KERN_ERR PFX "unable to alloc powernow_k8_data"); return -ENOMEM; } - memset(data,0,sizeof(struct powernow_k8_data)); data->cpu = pol->cpu; |