[MTD] Don't include linux/mtd/map.h from linux/mtd/physmap.h
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Fri Feb 9 09:59:07 EST 2007
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=ad7d314480d357db0466bef843cdc1abd9441d4f
Commit: ad7d314480d357db0466bef843cdc1abd9441d4f
Parent: 2a5bd596723e13b3f25b9a7f46e9541577bd42c7
Author: Haavard Skinnemoen <hskinnemoen at atmel.com>
AuthorDate: Fri Feb 9 15:30:29 2007 +0100
Committer: David Woodhouse <dwmw2 at infradead.org>
CommitDate: Fri Feb 9 14:40:12 2007 +0000
[MTD] Don't include linux/mtd/map.h from linux/mtd/physmap.h
Replace the inclusion of linux/mtd/map.h with a forward-declaration
of struct map_info. This allows linux/mtd/physmap.h to be included by
e.g. board code even if the MTD subsystem is disabled.
Signed-off-by: Haavard Skinnemoen <hskinnemoen at atmel.com>
Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
include/linux/mtd/physmap.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/include/linux/mtd/physmap.h b/include/linux/mtd/physmap.h
index 86831e3..0dc07d5 100644
--- a/include/linux/mtd/physmap.h
+++ b/include/linux/mtd/physmap.h
@@ -18,9 +18,10 @@
#define __LINUX_MTD_PHYSMAP__
#include <linux/mtd/mtd.h>
-#include <linux/mtd/map.h>
#include <linux/mtd/partitions.h>
+struct map_info;
+
struct physmap_flash_data {
unsigned int width;
void (*set_vpp)(struct map_info *, int);
More information about the linux-mtd-cvs
mailing list