Skip to content

Commit

Permalink
[MTD] Clean up <linux/mtd/physmap.h> to fix modular build
Browse files Browse the repository at this point in the history
... and also fix the multiple inclusion guard so it actually _works_

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
David Woodhouse committed May 14, 2006
1 parent 2f20670 commit 0d4e30d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions include/linux/mtd/physmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@
*/

#ifndef __LINUX_MTD_PHYSMAP__

#include <linux/config.h>

#if defined(CONFIG_MTD_PHYSMAP)
#define __LINUX_MTD_PHYSMAP__

#include <linux/mtd/mtd.h>
#include <linux/mtd/map.h>
Expand All @@ -37,7 +34,7 @@ struct physmap_flash_data {
void physmap_configure(unsigned long addr, unsigned long size,
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
Expand All @@ -51,6 +48,5 @@ void physmap_configure(unsigned long addr, unsigned long size,
void physmap_set_partitions(struct mtd_partition *parts, int num_parts);

#endif /* defined(CONFIG_MTD_PARTITIONS) */
#endif /* defined(CONFIG_MTD) */

#endif /* __LINUX_MTD_PHYSMAP__ */

0 comments on commit 0d4e30d

Please sign in to comment.