Skip to content

Commit

Permalink
[MTD] Don't include linux/mtd/map.h from linux/mtd/physmap.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Haavard Skinnemoen authored and David Woodhouse committed Feb 9, 2007
1 parent 2a5bd59 commit ad7d314
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/linux/mtd/physmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ad7d314

Please sign in to comment.