1 --- a/arch/arm/mach-pxa/gumstix-verdex.c
2 +++ b/arch/arm/mach-pxa/gumstix-verdex.c
5 #include <linux/delay.h>
7 +static struct resource flash_resource = {
10 + .flags = IORESOURCE_MEM,
13 +static struct mtd_partition gumstix_partitions[] = {
18 + .mask_flags = MTD_WRITEABLE /* force read-only */
22 + .offset = 0x00040000
26 + .offset = 0x01f00000
30 +static struct flash_platform_data gumstix_flash_data = {
31 + .map_name = "cfi_probe",
32 + .parts = gumstix_partitions,
33 + .nr_parts = ARRAY_SIZE(gumstix_partitions),
37 +static struct platform_device gumstix_flash_device = {
38 + .name = "pxa2xx-flash",
41 + .platform_data = &gumstix_flash_data,
43 + .resource = &flash_resource,
48 #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE) \
49 || defined(CONFIG_PCMCIA_PXA2XX) || defined(CONFIG_PCMCIA_PXA2XX_MODULE)
50 @@ -540,6 +580,7 @@ static struct platform_device verdex_aud
53 static struct platform_device *devices[] __initdata = {
54 + &gumstix_flash_device,