This commit was manufactured by cvs2svn to create branch 'vserver'.
[linux-2.6.git] / drivers / input / evbug.c
index 7eabb5f..07358fb 100644 (file)
@@ -49,9 +49,8 @@ static struct input_handle *evbug_connect(struct input_handler *handler, struct
 {
        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;
@@ -88,13 +87,13 @@ static struct input_handler evbug_handler = {
        .id_table =     evbug_ids,
 };
 
-int __init evbug_init(void)
+static int __init evbug_init(void)
 {
        input_register_handler(&evbug_handler);
        return 0;
 }
 
-void __exit evbug_exit(void)
+static void __exit evbug_exit(void)
 {
        input_unregister_handler(&evbug_handler);
 }