1 --- a/arch/mips/lantiq/xway/devices.c
2 +++ b/arch/mips/lantiq/xway/devices.c
3 @@ -121,6 +121,29 @@ ltq_register_etop(struct ltq_eth_data *e
8 +static struct resource ltq_ebu_resource =
11 + .start = LTQ_EBU_GPIO_START,
12 + .end = LTQ_EBU_GPIO_START + LTQ_EBU_GPIO_SIZE - 1,
13 + .flags = IORESOURCE_MEM,
16 +static struct platform_device ltq_ebu =
19 + .resource = <q_ebu_resource,
24 +ltq_register_gpio_ebu(unsigned int value)
26 + ltq_ebu.dev.platform_data = (void*) value;
27 + platform_device_register(<q_ebu);
30 static struct resource ltq_spi_resources[] = {
32 .start = LTQ_SSC_BASE_ADDR,
33 --- a/arch/mips/lantiq/xway/devices.h
34 +++ b/arch/mips/lantiq/xway/devices.h
35 @@ -16,5 +16,6 @@ extern void ltq_register_gpio(void);
36 extern void ltq_register_gpio_stp(void);
37 extern void ltq_register_ase_asc(void);
38 extern void ltq_register_etop(struct ltq_eth_data *eth);
39 +extern void ltq_register_gpio_ebu(unsigned int value);