diff options
author | Dave Jones <davej@redhat.com> | 2006-03-11 16:13:56 -0500 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2006-03-11 16:13:56 -0500 |
commit | 84f0b1ef8c013b33dea9bbc2521094dd29110cf0 (patch) | |
tree | d2a1fc8c1b69c23ca3ab358c7c07f23dd999c506 /arch/i386/kernel | |
parent | 388d6c5180faf83ea06dc2614e8e89910ddef4f0 (diff) |
[CPUFREQ] kzalloc conversion for gx-suspmod
Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'arch/i386/kernel')
-rw-r--r-- | arch/i386/kernel/cpu/cpufreq/gx-suspmod.c | 3 |
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) | |||
459 | 459 | ||
460 | dprintk("geode suspend modulation available.\n"); | 460 | dprintk("geode suspend modulation available.\n"); |
461 | 461 | ||
462 | params = kmalloc(sizeof(struct gxfreq_params), GFP_KERNEL); | 462 | params = kzalloc(sizeof(struct gxfreq_params), GFP_KERNEL); |
463 | if (params == NULL) | 463 | if (params == NULL) |
464 | return -ENOMEM; | 464 | return -ENOMEM; |
465 | memset(params, 0, sizeof(struct gxfreq_params)); | ||
466 | 465 | ||
467 | params->cs55x0 = gx_pci; | 466 | params->cs55x0 = gx_pci; |
468 | gx_params = params; | 467 | gx_params = params; |