]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/acpi/power.c
Merge branch 'parisc' from /home/kyle/repos/parisc-2.6.git
[linux-2.6-omap-h63xx.git] / drivers / acpi / power.c
index 23a8a9295578e9d408f0c238b56ff2f338b94f54..0ba7dfbbb2eebe47ad9f673d6151f605b503ef3a 100644 (file)
@@ -532,10 +532,9 @@ static int acpi_power_add(struct acpi_device *device)
        if (!device)
                return -EINVAL;
 
-       resource = kmalloc(sizeof(struct acpi_power_resource), GFP_KERNEL);
+       resource = kzalloc(sizeof(struct acpi_power_resource), GFP_KERNEL);
        if (!resource)
                return -ENOMEM;
-       memset(resource, 0, sizeof(struct acpi_power_resource));
 
        resource->device = device;
        strcpy(resource->name, device->pnp.bus_id);