diff options
author | Dave Jones <davej@redhat.com> | 2005-10-20 18:16:15 -0400 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2005-10-20 18:16:15 -0400 |
commit | bfdc708dc7d26fca66df0157b36356a2ba6166eb (patch) | |
tree | 600bcb92a1b11ca99d93d65cace469e40346b3c2 /arch/i386/kernel/cpu/cpufreq/powernow-k8.c | |
parent | b9111b7b7f46b0ec1ccb451d60ec439b92e4df65 (diff) |
[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 e2e03eebedf6..beb101157bd9 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) | |||
976 | if (!check_supported_cpu(pol->cpu)) | 976 | if (!check_supported_cpu(pol->cpu)) |
977 | return -ENODEV; | 977 | return -ENODEV; |
978 | 978 | ||
979 | data = kmalloc(sizeof(struct powernow_k8_data), GFP_KERNEL); | 979 | data = kzalloc(sizeof(struct powernow_k8_data), GFP_KERNEL); |
980 | if (!data) { | 980 | if (!data) { |
981 | printk(KERN_ERR PFX "unable to alloc powernow_k8_data"); | 981 | printk(KERN_ERR PFX "unable to alloc powernow_k8_data"); |
982 | return -ENOMEM; | 982 | return -ENOMEM; |
983 | } | 983 | } |
984 | memset(data,0,sizeof(struct powernow_k8_data)); | ||
985 | 984 | ||
986 | data->cpu = pol->cpu; | 985 | data->cpu = pol->cpu; |
987 | 986 | ||