From: Haavard Skinnemoen Date: Fri, 9 Feb 2007 14:30:29 +0000 (+0100) Subject: [MTD] Don't include linux/mtd/map.h from linux/mtd/physmap.h X-Git-Tag: v2.6.21-rc1~66^2~25 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad7d314480d357db0466bef843cdc1abd9441d4f;p=linux-2.6 [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 Signed-off-by: David Woodhouse --- diff --git a/include/linux/mtd/physmap.h b/include/linux/mtd/physmap.h index 86831e3594..0dc07d5f33 100644 --- a/include/linux/mtd/physmap.h +++ b/include/linux/mtd/physmap.h @@ -18,9 +18,10 @@ #define __LINUX_MTD_PHYSMAP__ #include -#include #include +struct map_info; + struct physmap_flash_data { unsigned int width; void (*set_vpp)(struct map_info *, int);