GPIODEV: Fix open-count race condition.
[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.19/arch/arm/mach-ixp4xx/nslu2-setup.c
6 ===================================================================
7 --- linux-2.6.19.orig/arch/arm/mach-ixp4xx/nslu2-setup.c
8 +++ linux-2.6.19/arch/arm/mach-ixp4xx/nslu2-setup.c
9 @@ -159,6 +159,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 @@ -166,7 +176,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.04553 seconds and 5 git commands to generate.