diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-03-06 16:48:40 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-03-20 04:14:19 -0500 |
commit | 9132983ae140a8ca81e95e081d5a4c0dd7a7f670 (patch) | |
tree | f3aec20b1bb5a2cc111bbbf6775a0f8d84d28994 /arch/sparc64/kernel/us3_cpufreq.c | |
parent | f7c00338cfeef125032aa12aa8ebeacf9e117e81 (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/us3_cpufreq.c')
-rw-r--r-- | arch/sparc64/kernel/us3_cpufreq.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/sparc64/kernel/us3_cpufreq.c b/arch/sparc64/kernel/us3_cpufreq.c index a912c45bdc05..47e3acafb5be 100644 --- a/arch/sparc64/kernel/us3_cpufreq.c +++ b/arch/sparc64/kernel/us3_cpufreq.c | |||
@@ -218,20 +218,16 @@ static int __init us3_freq_init(void) | |||
218 | struct cpufreq_driver *driver; | 218 | struct cpufreq_driver *driver; |
219 | 219 | ||
220 | ret = -ENOMEM; | 220 | ret = -ENOMEM; |
221 | driver = kmalloc(sizeof(struct cpufreq_driver), GFP_KERNEL); | 221 | driver = kzalloc(sizeof(struct cpufreq_driver), GFP_KERNEL); |
222 | if (!driver) | 222 | if (!driver) |
223 | goto err_out; | 223 | goto err_out; |
224 | memset(driver, 0, sizeof(*driver)); | ||
225 | 224 | ||
226 | us3_freq_table = kmalloc( | 225 | us3_freq_table = kzalloc( |
227 | (NR_CPUS * sizeof(struct us3_freq_percpu_info)), | 226 | (NR_CPUS * sizeof(struct us3_freq_percpu_info)), |
228 | GFP_KERNEL); | 227 | GFP_KERNEL); |
229 | if (!us3_freq_table) | 228 | if (!us3_freq_table) |
230 | goto err_out; | 229 | goto err_out; |
231 | 230 | ||
232 | memset(us3_freq_table, 0, | ||
233 | (NR_CPUS * sizeof(struct us3_freq_percpu_info))); | ||
234 | |||
235 | driver->init = us3_freq_cpu_init; | 231 | driver->init = us3_freq_cpu_init; |
236 | driver->verify = us3_freq_verify; | 232 | driver->verify = us3_freq_verify; |
237 | driver->target = us3_freq_target; | 233 | driver->target = us3_freq_target; |