aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2006-03-11 16:13:56 -0500
committerDave Jones <davej@redhat.com>2006-03-11 16:13:56 -0500
commit84f0b1ef8c013b33dea9bbc2521094dd29110cf0 (patch)
treed2a1fc8c1b69c23ca3ab358c7c07f23dd999c506
parent388d6c5180faf83ea06dc2614e8e89910ddef4f0 (diff)
downloadkernel_replicant_linux-84f0b1ef8c013b33dea9bbc2521094dd29110cf0.tar.gz
kernel_replicant_linux-84f0b1ef8c013b33dea9bbc2521094dd29110cf0.tar.bz2
kernel_replicant_linux-84f0b1ef8c013b33dea9bbc2521094dd29110cf0.zip
[CPUFREQ] kzalloc conversion for gx-suspmod
Signed-off-by: Dave Jones <davej@redhat.com>
-rw-r--r--arch/i386/kernel/cpu/cpufreq/gx-suspmod.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/i386/kernel/cpu/cpufreq/gx-suspmod.c b/arch/i386/kernel/cpu/cpufreq/gx-suspmod.c
index 65b8fa2b0ee4..92afa3bc84f1 100644
--- a/arch/i386/kernel/cpu/cpufreq/gx-suspmod.c
+++ b/arch/i386/kernel/cpu/cpufreq/gx-suspmod.c
@@ -459,10 +459,9 @@ static int __init cpufreq_gx_init(void)
dprintk("geode suspend modulation available.\n");
- params = kmalloc(sizeof(struct gxfreq_params), GFP_KERNEL);
+ params = kzalloc(sizeof(struct gxfreq_params), GFP_KERNEL);
if (params == NULL)
return -ENOMEM;
- memset(params, 0, sizeof(struct gxfreq_params));
params->cs55x0 = gx_pci;
gx_params = params;