Skip to content

Commit ad7d314

Browse files
Haavard Skinnemoendwmw2
authored andcommitted
[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@atmel.com> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
1 parent 2a5bd59 commit ad7d314

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎include/linux/mtd/physmap.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@
1818
#define __LINUX_MTD_PHYSMAP__
1919

2020
#include <linux/mtd/mtd.h>
21-
#include <linux/mtd/map.h>
2221
#include <linux/mtd/partitions.h>
2322

23+
struct map_info;
24+
2425
struct physmap_flash_data {
2526
unsigned int width;
2627
void (*set_vpp)(struct map_info *, int);

0 commit comments

Comments
 (0)