X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=include%2Flinux%2Fmtd%2Fmap.h;h=aa30244492c6770a5ccdaf9c6a21536c9f6ea579;hb=6e50e8a2136f1a90de251c653226ded447c5c915;hp=fedfbc8a287ff64228dee5a0f9fe551026988ea0;hpb=cb8a55e4cda017ed37a3ee051365f33a86956312;p=linux-2.6-omap-h63xx.git diff --git a/include/linux/mtd/map.h b/include/linux/mtd/map.h index fedfbc8a287..aa30244492c 100644 --- a/include/linux/mtd/map.h +++ b/include/linux/mtd/map.h @@ -1,11 +1,9 @@ /* Overhauled routines for dealing with different mmap regions of flash */ -/* $Id: map.h,v 1.54 2005/11/07 11:14:54 gleixner Exp $ */ #ifndef __LINUX_MTD_MAP_H__ #define __LINUX_MTD_MAP_H__ -#include #include #include #include @@ -15,7 +13,6 @@ #include #include #include -#include #ifdef CONFIG_MTD_MAP_BANK_WIDTH_1 #define map_bankwidth(map) 1 @@ -127,7 +124,15 @@ #endif #ifndef map_bankwidth -#error "No bus width supported. What's the point?" +#warning "No CONFIG_MTD_MAP_BANK_WIDTH_xx selected. No NOR chip support can work" +static inline int map_bankwidth(void *map) +{ + BUG(); + return 0; +} +#define map_bankwidth_is_large(map) (0) +#define map_words(map) (0) +#define MAX_MAP_BANKWIDTH 1 #endif static inline int map_bankwidth_supported(int w) @@ -183,9 +188,9 @@ typedef union { */ struct map_info { - char *name; + const char *name; unsigned long size; - unsigned long phys; + resource_size_t phys; #define NO_XIP (-1UL) void __iomem *virt;