1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-01-24 22:41:06 +02:00

ar71xx: move USB device registration directly into rb751{,g}_setup

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31355 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
juhosg 2012-04-19 21:31:43 +00:00
parent e25325e131
commit 9b7ceff90a

View File

@ -329,12 +329,10 @@ static int decode_rle(char *output, int len, char *in)
#define RB751_MAC_ADDRESS_OFFSET 0xE80
#define RB751_CALDATA_OFFSET 0x27C
static void __init rb751_wlan_and_usb_setup(void)
static void __init rb751_wlan_setup(void)
{
u8 *hardconfig = (u8 *) KSEG1ADDR(RB751_HARDCONFIG);
ath79_register_usb();
ath79_pci_set_plat_dev_init(rb751_pci_plat_dev_init);
ath79_register_pci();
@ -353,7 +351,8 @@ static void __init rb751_wlan_and_usb_setup(void)
static void __init rb751_setup(void)
{
rb750_setup();
rb751_wlan_and_usb_setup();
ath79_register_usb();
rb751_wlan_setup();
}
MIPS_MACHINE(ATH79_MACH_RB_751, "751", "MikroTik RouterBOARD 751",
@ -362,7 +361,8 @@ MIPS_MACHINE(ATH79_MACH_RB_751, "751", "MikroTik RouterBOARD 751",
static void __init rb751g_setup(void)
{
rb750gr3_setup();
rb751_wlan_and_usb_setup();
ath79_register_usb();
rb751_wlan_setup();
}
MIPS_MACHINE(ATH79_MACH_RB_751G, "751g", "MikroTik RouterBOARD 751G",