]> err.no Git - linux-2.6/commitdiff
[CPUFREQ] kzalloc conversion for gx-suspmod
authorDave Jones <davej@redhat.com>
Sat, 11 Mar 2006 21:13:56 +0000 (16:13 -0500)
committerDave Jones <davej@redhat.com>
Sat, 11 Mar 2006 21:13:56 +0000 (16:13 -0500)
Signed-off-by: Dave Jones <davej@redhat.com>
arch/i386/kernel/cpu/cpufreq/gx-suspmod.c

index 65b8fa2b0ee42ce485f8b1dc7be56e71152efda8..92afa3bc84f102a29b99f864f4f1db866e5a7a1a 100644 (file)
@@ -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;