projects
/
openwrt-10.03
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ar71xx: override lan port names on the RB750
[openwrt-10.03/.git]
/
target
/
linux
/
ar71xx
/
files
/
arch
/
mips
/
ar71xx
/
mach-rb750.c
diff --git
a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb750.c
b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb750.c
index a39101d631c0c44712ce380f598f61aa4eae8376..3972f57ac734f53bad09cb390957ec1f3bd7eef5 100644
(file)
--- a/
target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb750.c
+++ b/
target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb750.c
@@
-55,6
+55,13
@@
static struct platform_device rb750_leds_device = {
}
};
}
};
+static const char *rb750_port_names[AP91_ETH_NUM_PORT_NAMES] __initdata = {
+ "port5",
+ "port4",
+ "port3",
+ "port2",
+};
+
static struct platform_device rb750_nand_device = {
.name = "rb750-nand",
.id = -1,
static struct platform_device rb750_nand_device = {
.name = "rb750-nand",
.id = -1,
@@
-117,7
+124,7
@@
static void __init rb750_setup(void)
AR724X_GPIO_FUNC_ETH_SWITCH_LED3_EN |
AR724X_GPIO_FUNC_ETH_SWITCH_LED4_EN);
AR724X_GPIO_FUNC_ETH_SWITCH_LED3_EN |
AR724X_GPIO_FUNC_ETH_SWITCH_LED4_EN);
- ap91_eth_init(NULL,
NULL
);
+ ap91_eth_init(NULL,
rb750_port_names
);
platform_device_register(&rb750_leds_device);
platform_device_register(&rb750_nand_device);
}
platform_device_register(&rb750_leds_device);
platform_device_register(&rb750_nand_device);
}