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/speedstep-centrino.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/speedstep-centrino.c')
-rw-r--r-- | arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c b/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c index c397b62..92936c1 100644 --- a/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c +++ b/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c @@ -422,12 +422,11 @@ static int centrino_cpu_init_acpi(struct cpufreq_policy *policy) } } - centrino_model[cpu] = kmalloc(sizeof(struct cpu_model), GFP_KERNEL); + centrino_model[cpu] = kzalloc(sizeof(struct cpu_model), GFP_KERNEL); if (!centrino_model[cpu]) { result = -ENOMEM; goto err_unreg; } - memset(centrino_model[cpu], 0, sizeof(struct cpu_model)); centrino_model[cpu]->model_name=NULL; centrino_model[cpu]->max_freq = p.states[0].core_frequency * 1000; |