aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel/us2e_cpufreq.c
diff options
context:
space:
mode:
authorEric Sesterhenn <snakebyte@gmx.de>2006-03-06 16:48:40 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2006-03-20 04:14:19 -0500
commit9132983ae140a8ca81e95e081d5a4c0dd7a7f670 (patch)
treef3aec20b1bb5a2cc111bbbf6775a0f8d84d28994 /arch/sparc64/kernel/us2e_cpufreq.c
parentf7c00338cfeef125032aa12aa8ebeacf9e117e81 (diff)
[SPARC64]: kzalloc() conversion
this patch converts arch/sparc64 to kzalloc usage. Crosscompile tested with allyesconfig. Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/us2e_cpufreq.c')
-rw-r--r--arch/sparc64/kernel/us2e_cpufreq.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/sparc64/kernel/us2e_cpufreq.c b/arch/sparc64/kernel/us2e_cpufreq.c
index 669fb83dd4f5..1f83fe6a82d6 100644
--- a/arch/sparc64/kernel/us2e_cpufreq.c
+++ b/arch/sparc64/kernel/us2e_cpufreq.c
@@ -357,20 +357,16 @@ static int __init us2e_freq_init(void)
357 struct cpufreq_driver *driver; 357 struct cpufreq_driver *driver;
358 358
359 ret = -ENOMEM; 359 ret = -ENOMEM;
360 driver = kmalloc(sizeof(struct cpufreq_driver), GFP_KERNEL); 360 driver = kzalloc(sizeof(struct cpufreq_driver), GFP_KERNEL);
361 if (!driver) 361 if (!driver)
362 goto err_out; 362 goto err_out;
363 memset(driver, 0, sizeof(*driver));
364 363
365 us2e_freq_table = kmalloc( 364 us2e_freq_table = kzalloc(
366 (NR_CPUS * sizeof(struct us2e_freq_percpu_info)), 365 (NR_CPUS * sizeof(struct us2e_freq_percpu_info)),
367 GFP_KERNEL); 366 GFP_KERNEL);
368 if (!us2e_freq_table) 367 if (!us2e_freq_table)
369 goto err_out; 368 goto err_out;
370 369
371 memset(us2e_freq_table, 0,
372 (NR_CPUS * sizeof(struct us2e_freq_percpu_info)));
373
374 driver->init = us2e_freq_cpu_init; 370 driver->init = us2e_freq_cpu_init;
375 driver->verify = us2e_freq_verify; 371 driver->verify = us2e_freq_verify;
376 driver->target = us2e_freq_target; 372 driver->target = us2e_freq_target;