From: Dave Jones Date: Sat, 11 Mar 2006 21:13:56 +0000 (-0500) Subject: [CPUFREQ] kzalloc conversion for gx-suspmod X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=84f0b1ef8c013b33dea9bbc2521094dd29110cf0;p=linux-beck.git [CPUFREQ] kzalloc conversion for gx-suspmod Signed-off-by: Dave Jones --- 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;