提交 0d4e30d2 编写于 作者: D David Woodhouse

[MTD] Clean up <linux/mtd/physmap.h> to fix modular build

... and also fix the multiple inclusion guard so it actually _works_
Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
上级 2f206701
...@@ -15,10 +15,7 @@ ...@@ -15,10 +15,7 @@
*/ */
#ifndef __LINUX_MTD_PHYSMAP__ #ifndef __LINUX_MTD_PHYSMAP__
#define __LINUX_MTD_PHYSMAP__
#include <linux/config.h>
#if defined(CONFIG_MTD_PHYSMAP)
#include <linux/mtd/mtd.h> #include <linux/mtd/mtd.h>
#include <linux/mtd/map.h> #include <linux/mtd/map.h>
...@@ -37,7 +34,7 @@ struct physmap_flash_data { ...@@ -37,7 +34,7 @@ struct physmap_flash_data {
void physmap_configure(unsigned long addr, unsigned long size, void physmap_configure(unsigned long addr, unsigned long size,
int bankwidth, void (*set_vpp)(struct map_info *, int) ); int bankwidth, void (*set_vpp)(struct map_info *, int) );
#if defined(CONFIG_MTD_PARTITIONS) #ifdef CONFIG_MTD_PARTITIONS
/* /*
* Machines that wish to do flash partition may want to call this function in * 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,6 +48,5 @@ void physmap_configure(unsigned long addr, unsigned long size,
void physmap_set_partitions(struct mtd_partition *parts, int num_parts); void physmap_set_partitions(struct mtd_partition *parts, int num_parts);
#endif /* defined(CONFIG_MTD_PARTITIONS) */ #endif /* defined(CONFIG_MTD_PARTITIONS) */
#endif /* defined(CONFIG_MTD) */
#endif /* __LINUX_MTD_PHYSMAP__ */ #endif /* __LINUX_MTD_PHYSMAP__ */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册