input: evdev: remove duplicate suspend/resume functions
Varun Wadekar [Mon, 16 Apr 2012 10:10:10 +0000 (15:10 +0530)]
Change-Id: Ib49b64510bbf974b7d4e92021e4cefa7d8e088e5
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

drivers/input/evdev.c

index bd34e44..d7f2e30 100644 (file)
@@ -697,35 +697,6 @@ static int evdev_handle_mt_request(struct input_dev *dev,
        return 0;
 }
 
-static int evdev_enable_suspend_block(struct evdev *evdev,
-                                     struct evdev_client *client)
-{
-       if (client->use_wake_lock)
-               return 0;
-
-       spin_lock_irq(&client->buffer_lock);
-       wake_lock_init(&client->wake_lock, WAKE_LOCK_SUSPEND, client->name);
-       client->use_wake_lock = true;
-       if (client->packet_head != client->tail)
-               wake_lock(&client->wake_lock);
-       spin_unlock_irq(&client->buffer_lock);
-       return 0;
-}
-
-static int evdev_disable_suspend_block(struct evdev *evdev,
-                                      struct evdev_client *client)
-{
-       if (!client->use_wake_lock)
-               return 0;
-
-       spin_lock_irq(&client->buffer_lock);
-       client->use_wake_lock = false;
-       wake_lock_destroy(&client->wake_lock);
-       spin_unlock_irq(&client->buffer_lock);
-
-       return 0;
-}
-
 static long evdev_do_ioctl(struct file *file, unsigned int cmd,
                           void __user *p, int compat_mode)
 {