64c13b0670121e555307c5728232093b4a16c8a6
[openwrt.git] / target / linux / lantiq / patches-2.6.39 / 510-register_madwifi.patch
1 --- a/arch/mips/lantiq/xway/devices.c
2 +++ b/arch/mips/lantiq/xway/devices.c
3 @@ -144,6 +144,16 @@ ltq_register_gpio_ebu(unsigned int value
4         platform_device_register(&ltq_ebu);
5  }
6  
7 +/* madwifi */
8 +int lantiq_emulate_madwifi_eep = 0;
9 +EXPORT_SYMBOL(lantiq_emulate_madwifi_eep);
10 +
11 +void __init
12 +ltq_register_madwifi_eep(void)
13 +{
14 +       lantiq_emulate_madwifi_eep = 1;
15 +}
16 +
17  static struct resource ltq_spi_resources[] = {
18         {
19                 .start  = LTQ_SSC_BASE_ADDR,
20 --- a/arch/mips/lantiq/xway/devices.h
21 +++ b/arch/mips/lantiq/xway/devices.h
22 @@ -17,5 +17,6 @@ extern void ltq_register_gpio_stp(void);
23  extern void ltq_register_ase_asc(void);
24  extern void ltq_register_etop(struct ltq_eth_data *eth);
25  extern void ltq_register_gpio_ebu(unsigned int value);
26 +extern void ltq_register_madwifi_eep(void);
27  
28  #endif