1 --- a/arch/mips/lantiq/xway/devices.c
2 +++ b/arch/mips/lantiq/xway/devices.c
4 lantiq_emulate_madwifi_eep = 1;
8 +static struct gpio_buttons_platform_data ltq_gpio_buttons_platform_data;
10 +static struct platform_device ltq_gpio_buttons_platform_device =
12 + .name = "gpio-buttons",
15 + .platform_data = (void *) <q_gpio_buttons_platform_data,
20 +ltq_register_gpio_buttons(struct gpio_button *buttons, int cnt)
22 + ltq_gpio_buttons_platform_data.buttons = buttons;
23 + ltq_gpio_buttons_platform_data.nbuttons = cnt;
24 + platform_device_register(<q_gpio_buttons_platform_device);
27 static struct resource ltq_spi_resources[] = {
29 .start = LTQ_SSC_BASE_ADDR,
30 --- a/arch/mips/lantiq/xway/devices.h
31 +++ b/arch/mips/lantiq/xway/devices.h
33 #include "../devices.h"
34 #include <linux/phy.h>
35 #include <linux/spi/spi.h>
36 +#include <linux/gpio_buttons.h>
38 extern void ltq_register_gpio(void);
39 extern void ltq_register_gpio_stp(void);
41 extern void ltq_register_spi(struct ltq_spi_platform_data *pdata,
42 struct spi_board_info const *info, unsigned n);
43 extern void ltq_register_madwifi_eep(void);
44 +extern void ltq_register_gpio_buttons(struct gpio_button *buttons, int cnt);