|
@@ -24,14 +24,12 @@
|
|
|
#define NUM_FLASHBANKS 2
|
|
|
#define BUSWIDTH 4
|
|
|
|
|
|
-/* can be { "cfi_probe", "jedec_probe", "map_rom", NULL } */
|
|
|
-#define PROBETYPES { "jedec_probe", NULL }
|
|
|
-
|
|
|
#define MSG_PREFIX "impA7:" /* prefix for our printk()'s */
|
|
|
#define MTDID "impa7-%d" /* for mtdparts= partitioning */
|
|
|
|
|
|
static struct mtd_info *impa7_mtd[NUM_FLASHBANKS];
|
|
|
|
|
|
+static const char * const rom_probe_types[] = { "jedec_probe", NULL };
|
|
|
|
|
|
static struct map_info impa7_map[NUM_FLASHBANKS] = {
|
|
|
{
|
|
@@ -60,8 +58,7 @@ static struct mtd_partition partitions[] =
|
|
|
|
|
|
static int __init init_impa7(void)
|
|
|
{
|
|
|
- static const char *rom_probe_types[] = PROBETYPES;
|
|
|
- const char **type;
|
|
|
+ const char * const *type;
|
|
|
int i;
|
|
|
static struct { u_long addr; u_long size; } pt[NUM_FLASHBANKS] = {
|
|
|
{ WINDOW_ADDR0, WINDOW_SIZE0 },
|