Commit 40202c73 authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] Small cleanups for input

From:  Pavel Machek <pavel@suse.cz>
parent 73b57a09
......@@ -45,9 +45,7 @@ static struct input_handler power_handler;
static int suspend_button_pushed = 0;
static void suspend_button_task_handler(void *data)
{
//extern void pm_do_suspend(void);
udelay(200); /* debounce */
//pm_do_suspend();
suspend_button_pushed = 0;
}
......@@ -67,8 +65,6 @@ static void power_event(struct input_handle *handle, unsigned int type,
case KEY_SUSPEND:
printk("Powering down entire device\n");
//pm_send_all(PM_SUSPEND, dev);
if (!suspend_button_pushed) {
suspend_button_pushed = 1;
schedule_work(&suspend_button_task);
......
......@@ -18,10 +18,7 @@
#include <linux/list.h>
struct serio;
struct serio {
void *private;
void *driver;
char *name;
......@@ -45,7 +42,6 @@ struct serio {
};
struct serio_dev {
void *private;
char *name;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment