aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mtd/map.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mtd/map.h')
-rw-r--r--include/linux/mtd/map.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/include/linux/mtd/map.h b/include/linux/mtd/map.h
index b981b8772217..a9e6ba46865e 100644
--- a/include/linux/mtd/map.h
+++ b/include/linux/mtd/map.h
@@ -1,3 +1,21 @@
1/*
2 * Copyright © 2000-2010 David Woodhouse <dwmw2@infradead.org> et al.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 *
18 */
1 19
2/* Overhauled routines for dealing with different mmap regions of flash */ 20/* Overhauled routines for dealing with different mmap regions of flash */
3 21
@@ -7,8 +25,8 @@
7#include <linux/types.h> 25#include <linux/types.h>
8#include <linux/list.h> 26#include <linux/list.h>
9#include <linux/string.h> 27#include <linux/string.h>
28#include <linux/bug.h>
10 29
11#include <linux/mtd/compatmac.h>
12 30
13#include <asm/unaligned.h> 31#include <asm/unaligned.h>
14#include <asm/system.h> 32#include <asm/system.h>
@@ -386,6 +404,8 @@ static inline map_word inline_map_read(struct map_info *map, unsigned long ofs)
386#endif 404#endif
387 else if (map_bankwidth_is_large(map)) 405 else if (map_bankwidth_is_large(map))
388 memcpy_fromio(r.x, map->virt+ofs, map->bankwidth); 406 memcpy_fromio(r.x, map->virt+ofs, map->bankwidth);
407 else
408 BUG();
389 409
390 return r; 410 return r;
391} 411}