]> err.no Git - linux-2.6/commitdiff
[MTD] Don't include linux/mtd/map.h from linux/mtd/physmap.h
authorHaavard Skinnemoen <hskinnemoen@atmel.com>
Fri, 9 Feb 2007 14:30:29 +0000 (15:30 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Fri, 9 Feb 2007 14:40:12 +0000 (14:40 +0000)
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@atmel.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
include/linux/mtd/physmap.h

index 86831e3594f67f7cdf15f6d4570b69c7b6f7caa4..0dc07d5f33545ae37ec667f74ef16a3b593f7ad6 100644 (file)
 #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);