]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/mtd/map.h
MTD: handle pci_name() being const
[linux-2.6-omap-h63xx.git] / include / linux / mtd / map.h
index 28d461d862bda1d042055c463613a1a87338b698..9c1d95491f8b0a7d208257b39f6fd794d713be84 100644 (file)
 #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)
@@ -181,9 +189,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;