]> err.no Git - linux-2.6/blobdiff - drivers/acpi/fan.c
[POWERPC] Celleb: interfaces to the hypervisor
[linux-2.6] / drivers / acpi / fan.c
index c413e69fea8eb25633d4754ce69b9cd3dd9cf041..f305a826ca2df46c1db4b1bb940c987d885e3672 100644 (file)
@@ -186,10 +186,9 @@ static int acpi_fan_add(struct acpi_device *device)
        if (!device)
                return -EINVAL;
 
-       fan = kmalloc(sizeof(struct acpi_fan), GFP_KERNEL);
+       fan = kzalloc(sizeof(struct acpi_fan), GFP_KERNEL);
        if (!fan)
                return -ENOMEM;
-       memset(fan, 0, sizeof(struct acpi_fan));
 
        fan->device = device;
        strcpy(acpi_device_name(device), "Fan");