1 --- a/arch/arm/mach-gemini/board-wbd111.c
2 +++ b/arch/arm/mach-gemini/board-wbd111.c
4 #include <linux/skbuff.h>
5 #include <linux/gpio_keys.h>
6 #include <linux/mdio-gpio.h>
7 +#include <linux/mtd/mtd.h>
8 +#include <linux/mtd/partitions.h>
9 #include <asm/mach-types.h>
10 #include <asm/mach/arch.h>
11 #include <asm/mach/time.h>
12 @@ -102,12 +104,51 @@ static struct sys_timer wbd111_timer = {
13 .init = gemini_timer_init,
16 +#ifdef CONFIG_MTD_PARTITIONS
17 +static struct mtd_partition wbd111_partitions[] = {
22 + .mask_flags = MTD_WRITEABLE,
35 + .mask_flags = MTD_WRITEABLE,
40 + .mask_flags = MTD_WRITEABLE,
45 + .mask_flags = MTD_WRITEABLE,
48 +#define wbd111_num_partitions ARRAY_SIZE(wbd111_partitions)
50 +#define wbd111_partitions NULL
51 +#define wbd111_num_partitions 0
52 +#endif /* CONFIG_MTD_PARTITIONS */
54 static void __init wbd111_init(void)
57 platform_register_uart();
58 platform_register_watchdog();
59 - platform_register_pflash(SZ_8M, NULL, 0);
60 + platform_register_pflash(SZ_8M, wbd111_partitions,
61 + wbd111_num_partitions);
62 platform_device_register(&wbd111_leds_device);
63 platform_device_register(&wbd111_keys_device);
64 platform_device_register(&wbd111_phy_device);