openwrt: enable ar2315_gpio_leds platform registration
This commit is contained in:
parent
a3451a9571
commit
545e0b092c
|
@ -1,5 +1,5 @@
|
||||||
--- openwrt/10.03/build_dir/linux-atheros/linux-2.6.30.10/arch/mips/ar231x/ar2315.c 2010-06-12 13:10:09.887070347 +0200
|
--- /tmp/build_dir/linux-atheros/linux-2.6.30.10/arch/mips/ar231x/ar2315.c 2010-08-07 10:15:11.696355750 +0200
|
||||||
+++ openwrt/10.03/build_dir/linux-atheros/linux-2.6.30.10/arch/mips/ar231x/ar2315.c 2010-07-19 21:51:56.000000000 +0200
|
+++ build_dir/linux-atheros/linux-2.6.30.10/arch/mips/ar231x/ar2315.c 2010-08-07 10:33:47.588393782 +0200
|
||||||
@@ -36,6 +36,11 @@
|
@@ -36,6 +36,11 @@
|
||||||
#include "devices.h"
|
#include "devices.h"
|
||||||
#include "ar2315.h"
|
#include "ar2315.h"
|
||||||
|
@ -50,16 +50,15 @@
|
||||||
#define SPI_FLASH_CTL 0x00
|
#define SPI_FLASH_CTL 0x00
|
||||||
#define SPI_FLASH_OPCODE 0x04
|
#define SPI_FLASH_OPCODE 0x04
|
||||||
#define SPI_FLASH_DATA 0x08
|
#define SPI_FLASH_DATA 0x08
|
||||||
@@ -519,7 +555,7 @@
|
@@ -520,6 +556,7 @@
|
||||||
led++;
|
|
||||||
}
|
}
|
||||||
ar2315_led_data.num_leds = led;
|
ar2315_led_data.num_leds = led;
|
||||||
- platform_device_register(&ar2315_gpio_leds);
|
platform_device_register(&ar2315_gpio_leds);
|
||||||
+ platform_device_register(&ar2315_spi_gpio);
|
+ platform_device_register(&ar2315_spi_gpio);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
static inline void ar2315_init_gpio(void)
|
static inline void ar2315_init_gpio(void)
|
||||||
@@ -530,6 +566,8 @@
|
@@ -530,6 +567,8 @@
|
||||||
int __init
|
int __init
|
||||||
ar2315_init_devices(void)
|
ar2315_init_devices(void)
|
||||||
{
|
{
|
||||||
|
@ -68,15 +67,7 @@
|
||||||
if (!is_2315())
|
if (!is_2315())
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
@@ -537,13 +575,19 @@
|
@@ -544,6 +583,12 @@
|
||||||
ar231x_find_config(ar2315_flash_limit());
|
|
||||||
ar2315_eth_data.macaddr = ar231x_board.config->enet0_mac;
|
|
||||||
|
|
||||||
- ar2315_init_gpio();
|
|
||||||
+ // ar2315_init_gpio();
|
|
||||||
platform_device_register(&ar2315_wdt);
|
|
||||||
platform_device_register(&ar2315_spiflash);
|
|
||||||
ar231x_add_ethernet(0, AR2315_ENET0, AR2315_IRQ_ENET0_INTRS,
|
|
||||||
&ar2315_eth_data);
|
&ar2315_eth_data);
|
||||||
ar231x_add_wmac(0, AR2315_WLAN0, AR2315_IRQ_WLAN0_INTRS);
|
ar231x_add_wmac(0, AR2315_WLAN0, AR2315_IRQ_WLAN0_INTRS);
|
||||||
|
|
||||||
|
@ -88,3 +79,4 @@
|
||||||
+
|
+
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue