[CPUFREQ] kzalloc conversion for gx-suspmod
Signed-off-by: Dave Jones <davej@redhat.com>
This commit is contained in:
parent
388d6c5180
commit
84f0b1ef8c
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue