1 --- a/arch/mips/ath79/mach-ap81.c
2 +++ b/arch/mips/ath79/mach-ap81.c
5 #define AP81_CAL_DATA_ADDR 0x1fff1000
7 -static struct mtd_partition ap81_partitions[] = {
12 - .mask_flags = MTD_WRITEABLE,
14 - .name = "u-boot-env",
29 - .mask_flags = MTD_WRITEABLE,
33 -static struct flash_platform_data ap81_flash_data = {
34 - .parts = ap81_partitions,
35 - .nr_parts = ARRAY_SIZE(ap81_partitions),
38 static struct gpio_led ap81_leds_gpio[] __initdata = {
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),
45 - ath79_register_m25p80(&ap81_flash_data);
46 + ath79_register_m25p80(NULL);
47 ath79_register_wmac(cal_data, NULL);