Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[CPUFREQ] kzalloc conversion for gx-suspmod



Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent 388d6c51
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -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;