diff options
-rw-r--r-- | include/linux/mtd/physmap.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/include/linux/mtd/physmap.h b/include/linux/mtd/physmap.h index 50f954461aa8..86831e3594f6 100644 --- a/include/linux/mtd/physmap.h +++ b/include/linux/mtd/physmap.h | |||
@@ -15,10 +15,7 @@ | |||
15 | */ | 15 | */ |
16 | 16 | ||
17 | #ifndef __LINUX_MTD_PHYSMAP__ | 17 | #ifndef __LINUX_MTD_PHYSMAP__ |
18 | 18 | #define __LINUX_MTD_PHYSMAP__ | |
19 | #include <linux/config.h> | ||
20 | |||
21 | #if defined(CONFIG_MTD_PHYSMAP) | ||
22 | 19 | ||
23 | #include <linux/mtd/mtd.h> | 20 | #include <linux/mtd/mtd.h> |
24 | #include <linux/mtd/map.h> | 21 | #include <linux/mtd/map.h> |
@@ -37,7 +34,7 @@ struct physmap_flash_data { | |||
37 | void physmap_configure(unsigned long addr, unsigned long size, | 34 | void physmap_configure(unsigned long addr, unsigned long size, |
38 | int bankwidth, void (*set_vpp)(struct map_info *, int) ); | 35 | int bankwidth, void (*set_vpp)(struct map_info *, int) ); |
39 | 36 | ||
40 | #if defined(CONFIG_MTD_PARTITIONS) | 37 | #ifdef CONFIG_MTD_PARTITIONS |
41 | 38 | ||
42 | /* | 39 | /* |
43 | * Machines that wish to do flash partition may want to call this function in | 40 | * Machines that wish to do flash partition may want to call this function in |
@@ -51,6 +48,5 @@ void physmap_configure(unsigned long addr, unsigned long size, | |||
51 | void physmap_set_partitions(struct mtd_partition *parts, int num_parts); | 48 | void physmap_set_partitions(struct mtd_partition *parts, int num_parts); |
52 | 49 | ||
53 | #endif /* defined(CONFIG_MTD_PARTITIONS) */ | 50 | #endif /* defined(CONFIG_MTD_PARTITIONS) */ |
54 | #endif /* defined(CONFIG_MTD) */ | ||
55 | 51 | ||
56 | #endif /* __LINUX_MTD_PHYSMAP__ */ | 52 | #endif /* __LINUX_MTD_PHYSMAP__ */ |