]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/input/power.c
Merge branch 'master' into gfs2
[mv-sheeva.git] / drivers / input / power.c
index bfc5c63ebffe2a018ffeae99ebe23fc2669983bf..51a519e24b6d07bd146206d47cd1293719dedb48 100644 (file)
@@ -28,7 +28,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/config.h>
 #include <linux/input.h>
 #include <linux/slab.h>
 #include <linux/init.h>
@@ -103,9 +102,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;