Skip to content

Commit

Permalink
[CPUFREQ] kzalloc conversion for gx-suspmod
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Jones <davej@redhat.com>
  • Loading branch information
Dave Jones committed Mar 11, 2006
1 parent 388d6c5 commit 84f0b1e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/i386/kernel/cpu/cpufreq/gx-suspmod.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 84f0b1e

Please sign in to comment.