Commit 84f0b1ef authored by Dave Jones's avatar Dave Jones

[CPUFREQ] kzalloc conversion for gx-suspmod

Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent 388d6c51
...@@ -459,10 +459,9 @@ static int __init cpufreq_gx_init(void) ...@@ -459,10 +459,9 @@ static int __init cpufreq_gx_init(void)
dprintk("geode suspend modulation available.\n"); 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) if (params == NULL)
return -ENOMEM; return -ENOMEM;
memset(params, 0, sizeof(struct gxfreq_params));
params->cs55x0 = gx_pci; params->cs55x0 = gx_pci;
gx_params = params; gx_params = params;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment