From c068fc7409f3fb1a533ac3dc34f56643911e5f07 Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Sun, 14 May 2006 12:25:19 +0100 Subject: [PATCH] --- yaml --- r: 27775 b: refs/heads/master c: 0d4e30d26a279f1b6a008a233a6835ad2af571e4 h: refs/heads/master i: 27773: 1dbb3d0270365ecbb85d4e2e8fc313aaf08ad3db 27771: ed7ea5fd132f15384a2d8a7f1ecf924df941fe42 27767: 31c4e5003bd33d49aca92434bd8de581e3980e57 27759: c6e3acd51f96c7b3222da5595fb66d24321beb79 27743: c8003697412a4a7bfb94946a2b2a591b38eafea2 27711: 7666cfa413b8b9c74701ca36ec79221077f184b1 27647: d1f4bd037338f27e740e498ef049f7964045f4b4 v: v3 --- [refs] | 2 +- trunk/include/linux/mtd/physmap.h | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/[refs] b/[refs] index 2b08f0d3b63f..64bb63770796 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 2f206701ae9b5c13719c2be26121b9461f05f87c +refs/heads/master: 0d4e30d26a279f1b6a008a233a6835ad2af571e4 diff --git a/trunk/include/linux/mtd/physmap.h b/trunk/include/linux/mtd/physmap.h index 50f954461aa8..86831e3594f6 100644 --- a/trunk/include/linux/mtd/physmap.h +++ b/trunk/include/linux/mtd/physmap.h @@ -15,10 +15,7 @@ */ #ifndef __LINUX_MTD_PHYSMAP__ - -#include - -#if defined(CONFIG_MTD_PHYSMAP) +#define __LINUX_MTD_PHYSMAP__ #include #include @@ -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 @@ -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__ */