* [PATCH] Don't include linux/mtd/map.h from linux/mtd/physmap.h
@ 2007-02-09 14:30 Haavard Skinnemoen
2007-02-09 15:07 ` David Woodhouse
0 siblings, 1 reply; 2+ messages in thread
From: Haavard Skinnemoen @ 2007-02-09 14:30 UTC (permalink / raw)
To: David Woodhouse; +Cc: linux-mtd, Linux Kernel
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>
---
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);
--
1.4.4.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Don't include linux/mtd/map.h from linux/mtd/physmap.h
2007-02-09 14:30 [PATCH] Don't include linux/mtd/map.h from linux/mtd/physmap.h Haavard Skinnemoen
@ 2007-02-09 15:07 ` David Woodhouse
0 siblings, 0 replies; 2+ messages in thread
From: David Woodhouse @ 2007-02-09 15:07 UTC (permalink / raw)
To: Haavard Skinnemoen; +Cc: linux-mtd, Linux Kernel
On Fri, 2007-02-09 at 15:30 +0100, Haavard Skinnemoen wrote:
> 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>
Applied; thanks.
--
dwmw2
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-02-09 15:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-09 14:30 [PATCH] Don't include linux/mtd/map.h from linux/mtd/physmap.h Haavard Skinnemoen
2007-02-09 15:07 ` David Woodhouse
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.