]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/misc/asus-laptop.c
ACPI: Kconfig: CONFIG_ACPI_PROCFS now defaults to N
[linux-2.6-omap-h63xx.git] / drivers / misc / asus-laptop.c
index 7798f590e5aab8c840b3f839d249926e67308343..f7530605997120b30f6199cdebabc7dcbd439c53 100644 (file)
@@ -979,10 +979,9 @@ static int asus_hotk_add(struct acpi_device *device)
        printk(ASUS_NOTICE "Asus Laptop Support version %s\n",
               ASUS_LAPTOP_VERSION);
 
-       hotk = kmalloc(sizeof(struct asus_hotk), GFP_KERNEL);
+       hotk = kzalloc(sizeof(struct asus_hotk), GFP_KERNEL);
        if (!hotk)
                return -ENOMEM;
-       memset(hotk, 0, sizeof(struct asus_hotk));
 
        hotk->handle = device->handle;
        strcpy(acpi_device_name(device), ASUS_HOTK_DEVICE_NAME);