ar71xx: add 4.1 support
[openwrt/openwrt.git] / target / linux / ar71xx / patches-4.1 / 615-MIPS-ath79-ap83-remove-mtd-partitions.patch
1 --- a/arch/mips/ath79/mach-ap83.c
2 +++ b/arch/mips/ath79/mach-ap83.c
3 @@ -42,41 +42,8 @@
4 #define AP83_KEYS_POLL_INTERVAL 20 /* msecs */
5 #define AP83_KEYS_DEBOUNCE_INTERVAL (3 * AP83_KEYS_POLL_INTERVAL)
6
7 -static struct mtd_partition ap83_flash_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 = 0x020000,
17 - .mask_flags = MTD_WRITEABLE,
18 - }, {
19 - .name = "kernel",
20 - .offset = 0x060000,
21 - .size = 0x140000,
22 - }, {
23 - .name = "rootfs",
24 - .offset = 0x1a0000,
25 - .size = 0x650000,
26 - }, {
27 - .name = "art",
28 - .offset = 0x7f0000,
29 - .size = 0x010000,
30 - .mask_flags = MTD_WRITEABLE,
31 - }, {
32 - .name = "firmware",
33 - .offset = 0x060000,
34 - .size = 0x790000,
35 - }
36 -};
37 -
38 static struct physmap_flash_data ap83_flash_data = {
39 .width = 2,
40 - .parts = ap83_flash_partitions,
41 - .nr_parts = ARRAY_SIZE(ap83_flash_partitions),
42 };
43
44 static struct resource ap83_flash_resources[] = {