1 --- a/drivers/mtd/redboot.c
2 +++ b/drivers/mtd/redboot.c
4 #include <linux/mtd/partitions.h>
5 #include <linux/module.h>
7 +#include <asm/mach-types.h>
9 struct fis_image_desc {
10 unsigned char name[16]; // Null terminated name
11 uint32_t flash_base; // Address within FLASH of image
12 @@ -47,7 +49,8 @@ struct fis_list {
13 struct fis_list *next;
16 -static int directory = CONFIG_MTD_REDBOOT_DIRECTORY_BLOCK;
17 +int directory = CONFIG_MTD_REDBOOT_DIRECTORY_BLOCK;
19 module_param(directory, int, 0);
21 static inline int redboot_checksum(struct fis_image_desc *img)
22 @@ -75,6 +78,8 @@ static int parse_redboot_partitions(stru
23 #ifdef CONFIG_MTD_REDBOOT_PARTS_UNALLOCATED
24 static char nullstring[] = "unallocated";
26 + if (machine_is_sidewinder())
29 if ( directory < 0 ) {
30 offset = master->size + directory * master->erasesize;