1 Index: linux-2.6.21/arch/arm/mach-pxa/ezx-e680.c
2 ===================================================================
3 --- linux-2.6.21.orig/arch/arm/mach-pxa/ezx-e680.c 2007-06-08 18:38:48.000000000 +0200
4 +++ linux-2.6.21/arch/arm/mach-pxa/ezx-e680.c 2007-06-08 18:38:59.000000000 +0200
6 #include <linux/mmc/host.h>
8 #include <linux/input.h>
9 +#include <linux/gpio_keys.h>
11 #include <asm/mach-types.h>
12 #include <asm/mach/arch.h>
17 +static struct gpio_keys_button e680locksw_buttons[] = {
19 + .keycode = KEY_SLEEP,
20 + .gpio = GPIO_LOCK_SCREEN_PIN,
21 + .desc = "E680 lockscreen sw",
25 +static struct gpio_keys_platform_data e680locksw_platform_data = {
26 + .buttons = e680locksw_buttons,
30 +static struct platform_device e680locksw_device = {
31 + .name = "gpio-keys",
34 + .platform_data = &e680locksw_platform_data,
38 static struct platform_device *devices[] __initdata = {
43 static void __init e680_init(void)