]> err.no Git - linux-2.6/blobdiff - drivers/input/power.c
[PATCH] m68k: restore amikbd compatibility with 2.4
[linux-2.6] / drivers / input / power.c
index bfc5c63ebffe2a018ffeae99ebe23fc2669983bf..526e6070600c8a02a29df0283d55fcae79217b0f 100644 (file)
@@ -103,9 +103,8 @@ static struct input_handle *power_connect(struct input_handler *handler,
 {
        struct input_handle *handle;
 
-       if (!(handle = kmalloc(sizeof(struct input_handle), GFP_KERNEL)))
+       if (!(handle = kzalloc(sizeof(struct input_handle), GFP_KERNEL)))
                return NULL;
-       memset(handle, 0, sizeof(struct input_handle));
 
        handle->dev = dev;
        handle->handler = handler;