615-MIPS-ath79-ap83-remove-mtd-partitions.patch 1021 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. -static struct mtd_partition ap83_flash_partitions[] = {
  7. - {
  8. - .name = "u-boot",
  9. - .offset = 0,
  10. - .size = 0x040000,
  11. - .mask_flags = MTD_WRITEABLE,
  12. - }, {
  13. - .name = "u-boot-env",
  14. - .offset = 0x040000,
  15. - .size = 0x020000,
  16. - .mask_flags = MTD_WRITEABLE,
  17. - }, {
  18. - .name = "kernel",
  19. - .offset = 0x060000,
  20. - .size = 0x140000,
  21. - }, {
  22. - .name = "rootfs",
  23. - .offset = 0x1a0000,
  24. - .size = 0x650000,
  25. - }, {
  26. - .name = "art",
  27. - .offset = 0x7f0000,
  28. - .size = 0x010000,
  29. - .mask_flags = MTD_WRITEABLE,
  30. - }, {
  31. - .name = "firmware",
  32. - .offset = 0x060000,
  33. - .size = 0x790000,
  34. - }
  35. -};
  36. -
  37. static struct physmap_flash_data ap83_flash_data = {
  38. .width = 2,
  39. - .parts = ap83_flash_partitions,
  40. - .nr_parts = ARRAY_SIZE(ap83_flash_partitions),
  41. };
  42. static struct resource ap83_flash_resources[] = {