[kernel] add a chip_fixup function to the plat_nand driver on 2.6.23 as well (closes...
[openwrt.git] / target / linux / ixp4xx / patches / 143-nslu2_mtd_microcode.patch
1 ---
2 arch/arm/mach-ixp4xx/nslu2-setup.c | 13 ++++++++++++-
3 1 file changed, 12 insertions(+), 1 deletion(-)
4
5 Index: linux-2.6.21.7/arch/arm/mach-ixp4xx/nslu2-setup.c
6 ===================================================================
7 --- linux-2.6.21.7.orig/arch/arm/mach-ixp4xx/nslu2-setup.c
8 +++ linux-2.6.21.7/arch/arm/mach-ixp4xx/nslu2-setup.c
9 @@ -161,6 +161,16 @@ static struct platform_device mac0 = {
10 .resource = &res_mac0,
11 };
12
13 +struct npe_ucode_platform_data nslu2_npe_ucode_data = {
14 + .mtd_partition = "FIS directory",
15 +};
16 +
17 +static struct platform_device nslu2_npe_ucode = {
18 + .name = "ixp4xx_npe_ucode",
19 + .id = 0,
20 + .dev.platform_data = &nslu2_npe_ucode_data,
21 +};
22 +
23 static struct platform_device *nslu2_devices[] __initdata = {
24 &nslu2_i2c_controller,
25 &nslu2_flash,
26 @@ -168,7 +178,8 @@ static struct platform_device *nslu2_dev
27 #ifdef CONFIG_LEDS_IXP4XX
28 &nslu2_leds,
29 #endif
30 - &mac0
31 + &mac0,
32 + &nslu2_npe_ucode,
33 };
34
35 static void nslu2_power_off(void)
This page took 0.047422 seconds and 5 git commands to generate.