diff options
author | Burman Yan <yan_952@hotmail.com> | 2006-12-19 15:56:11 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-12-20 16:54:54 -0500 |
commit | 36bcbec7ce21e2e8b3143b11a05747330abeca70 (patch) | |
tree | d9ace4d83a5013dbb3cd599e7bc4358ce4cdb980 /arch | |
parent | 5b7b4119553dd7cc0bc200c0d1b1598e158eec9a (diff) |
ACPI: replace kmalloc+memset with kzalloc
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/ia64/kernel/cpufreq/acpi-cpufreq.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/ia64/kernel/cpufreq/acpi-cpufreq.c b/arch/ia64/kernel/cpufreq/acpi-cpufreq.c index 088f130197ae..15c08d52f09f 100644 --- a/arch/ia64/kernel/cpufreq/acpi-cpufreq.c +++ b/arch/ia64/kernel/cpufreq/acpi-cpufreq.c | |||
@@ -276,12 +276,10 @@ acpi_cpufreq_cpu_init ( | |||
276 | 276 | ||
277 | dprintk("acpi_cpufreq_cpu_init\n"); | 277 | dprintk("acpi_cpufreq_cpu_init\n"); |
278 | 278 | ||
279 | data = kmalloc(sizeof(struct cpufreq_acpi_io), GFP_KERNEL); | 279 | data = kzalloc(sizeof(struct cpufreq_acpi_io), GFP_KERNEL); |
280 | if (!data) | 280 | if (!data) |
281 | return (-ENOMEM); | 281 | return (-ENOMEM); |
282 | 282 | ||
283 | memset(data, 0, sizeof(struct cpufreq_acpi_io)); | ||
284 | |||
285 | acpi_io_data[cpu] = data; | 283 | acpi_io_data[cpu] = data; |
286 | 284 | ||
287 | result = acpi_processor_register_performance(&data->acpi_data, cpu); | 285 | result = acpi_processor_register_performance(&data->acpi_data, cpu); |