add a netconfig override for the wl-500g (fixes #1116)
[openwrt.git] / target / linux / ixp4xx-2.6 / patches / 144-nas100d_mtd_microcode.patch
1 ---
2 arch/arm/mach-ixp4xx/nas100d-setup.c | 13 ++++++++++++-
3 1 file changed, 12 insertions(+), 1 deletion(-)
4
5 Index: linux-2.6.19/arch/arm/mach-ixp4xx/nas100d-setup.c
6 ===================================================================
7 --- linux-2.6.19.orig/arch/arm/mach-ixp4xx/nas100d-setup.c
8 +++ linux-2.6.19/arch/arm/mach-ixp4xx/nas100d-setup.c
9 @@ -145,13 +145,24 @@ static struct platform_device mac0 = {
10 .resource = &res_mac0,
11 };
12
13 +struct npe_ucode_platform_data nas100d_npe_ucode_data = {
14 + .mtd_partition = "sysconfig",
15 +};
16 +
17 +static struct platform_device nas100d_npe_ucode = {
18 + .name = "ixp4xx_npe_ucode",
19 + .id = 0,
20 + .dev.platform_data = &nas100d_npe_ucode_data,
21 +};
22 +
23 static struct platform_device *nas100d_devices[] __initdata = {
24 &nas100d_i2c_controller,
25 &nas100d_flash,
26 #ifdef CONFIG_LEDS_IXP4XX
27 &nas100d_leds,
28 #endif
29 - &mac0
30 + &mac0,
31 + &nas100d_npe_ucode,
32 };
33
34 static void nas100d_power_off(void)
This page took 0.041108 seconds and 5 git commands to generate.