ar71xx: wpj588: add missing usb support
[openwrt.git] / target / linux / ar71xx / patches-3.18 / 614-MIPS-ath79-ap81-remove-mtd-partitions.patch
1 --- a/arch/mips/ath79/mach-ap81.c
2 +++ b/arch/mips/ath79/mach-ap81.c
3 @@ -33,37 +33,6 @@
4  
5  #define AP81_CAL_DATA_ADDR     0x1fff1000
6  
7 -static struct mtd_partition ap81_partitions[] = {
8 -       {
9 -               .name           = "u-boot",
10 -               .offset         = 0,
11 -               .size           = 0x040000,
12 -               .mask_flags     = MTD_WRITEABLE,
13 -       }, {
14 -               .name           = "u-boot-env",
15 -               .offset         = 0x040000,
16 -               .size           = 0x010000,
17 -       }, {
18 -               .name           = "rootfs",
19 -               .offset         = 0x050000,
20 -               .size           = 0x500000,
21 -       }, {
22 -               .name           = "uImage",
23 -               .offset         = 0x550000,
24 -               .size           = 0x100000,
25 -       }, {
26 -               .name           = "ART",
27 -               .offset         = 0x650000,
28 -               .size           = 0x1b0000,
29 -               .mask_flags     = MTD_WRITEABLE,
30 -       }
31 -};
32 -
33 -static struct flash_platform_data ap81_flash_data = {
34 -       .parts          = ap81_partitions,
35 -       .nr_parts       = ARRAY_SIZE(ap81_partitions),
36 -};
37 -
38  static struct gpio_led ap81_leds_gpio[] __initdata = {
39         {
40                 .name           = "ap81:green:status",
41 @@ -111,7 +80,7 @@ static void __init ap81_setup(void)
42         ath79_register_gpio_keys_polled(-1, AP81_KEYS_POLL_INTERVAL,
43                                         ARRAY_SIZE(ap81_gpio_keys),
44                                         ap81_gpio_keys);
45 -       ath79_register_m25p80(&ap81_flash_data);
46 +       ath79_register_m25p80(NULL);
47         ath79_register_wmac(cal_data, NULL);
48         ath79_register_usb();
49