summaryrefslogtreecommitdiffstats
path: root/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2005-10-20 15:16:15 -0700
committerDave Jones <davej@redhat.com>2005-10-20 15:16:15 -0700
commitbfdc708dc7d26fca66df0157b36356a2ba6166eb (patch)
tree600bcb92a1b11ca99d93d65cace469e40346b3c2 /arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c
parentb9111b7b7f46b0ec1ccb451d60ec439b92e4df65 (diff)
downloadop-kernel-dev-bfdc708dc7d26fca66df0157b36356a2ba6166eb.zip
op-kernel-dev-bfdc708dc7d26fca66df0157b36356a2ba6166eb.tar.gz
[CPUFREQ] kzalloc conversions for i386 drivers.
Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c')
-rw-r--r--arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c b/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c
index 822c8ce..22b5622 100644
--- a/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c
+++ b/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c
@@ -376,10 +376,9 @@ acpi_cpufreq_cpu_init (
arg0.buffer.length = 12;
arg0.buffer.pointer = (u8 *) arg0_buf;
- data = kmalloc(sizeof(struct cpufreq_acpi_io), GFP_KERNEL);
+ data = kzalloc(sizeof(struct cpufreq_acpi_io), GFP_KERNEL);
if (!data)
return (-ENOMEM);
- memset(data, 0, sizeof(struct cpufreq_acpi_io));
acpi_io_data[cpu] = data;
OpenPOWER on IntegriCloud