linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / drivers / input / power.c
index 51a519e..bfc5c63 100644 (file)
@@ -28,6 +28,7 @@
  */
 
 #include <linux/module.h>
+#include <linux/config.h>
 #include <linux/input.h>
 #include <linux/slab.h>
 #include <linux/init.h>
@@ -102,8 +103,9 @@ static struct input_handle *power_connect(struct input_handler *handler,
 {
        struct input_handle *handle;
 
-       if (!(handle = kzalloc(sizeof(struct input_handle), GFP_KERNEL)))
+       if (!(handle = kmalloc(sizeof(struct input_handle), GFP_KERNEL)))
                return NULL;
+       memset(handle, 0, sizeof(struct input_handle));
 
        handle->dev = dev;
        handle->handler = handler;