[PATCH] mtd: remove compatmac.h From: Alexey Dobriyan File is effectively empty. Signed-off-by: Alexey Dobriyan Index: linux-kj/drivers/mtd/chips/cfi_cmdset_0001.c =================================================================== --- linux-kj.orig/drivers/mtd/chips/cfi_cmdset_0001.c 2005-10-28 16:25:04.000000000 +0400 +++ linux-kj/drivers/mtd/chips/cfi_cmdset_0001.c 2005-10-28 16:39:24.000000000 +0400 @@ -33,7 +33,6 @@ #include #include #include -#include #include /* #define CMDSET0001_DISABLE_ERASE_SUSPEND_ON_WRITE */ Index: linux-kj/drivers/mtd/chips/cfi_cmdset_0002.c =================================================================== --- linux-kj.orig/drivers/mtd/chips/cfi_cmdset_0002.c 2005-10-28 16:25:04.000000000 +0400 +++ linux-kj/drivers/mtd/chips/cfi_cmdset_0002.c 2005-10-28 16:39:24.000000000 +0400 @@ -34,7 +34,6 @@ #include #include #include -#include #include #include #include Index: linux-kj/drivers/mtd/chips/cfi_cmdset_0020.c =================================================================== --- linux-kj.orig/drivers/mtd/chips/cfi_cmdset_0020.c 2005-10-28 16:25:04.000000000 +0400 +++ linux-kj/drivers/mtd/chips/cfi_cmdset_0020.c 2005-10-28 16:39:24.000000000 +0400 @@ -36,8 +36,6 @@ #include #include #include -#include - static int cfi_staa_read(struct mtd_info *, loff_t, size_t, size_t *, u_char *); static int cfi_staa_write_buffers(struct mtd_info *, loff_t, size_t, size_t *, const u_char *); Index: linux-kj/drivers/mtd/chips/cfi_util.c =================================================================== --- linux-kj.orig/drivers/mtd/chips/cfi_util.c 2005-10-28 16:25:04.000000000 +0400 +++ linux-kj/drivers/mtd/chips/cfi_util.c 2005-10-28 16:39:24.000000000 +0400 @@ -26,7 +26,6 @@ #include #include #include -#include struct cfi_extquery * __xipram cfi_read_pri(struct map_info *map, __u16 adr, __u16 size, const char* name) Index: linux-kj/drivers/mtd/chips/chipreg.c =================================================================== --- linux-kj.orig/drivers/mtd/chips/chipreg.c 2005-10-28 16:25:04.000000000 +0400 +++ linux-kj/drivers/mtd/chips/chipreg.c 2005-10-28 16:39:24.000000000 +0400 @@ -13,7 +13,6 @@ #include #include #include -#include static DEFINE_SPINLOCK(chip_drvs_lock); static LIST_HEAD(chip_drvs_list); Index: linux-kj/drivers/mtd/chips/jedec.c =================================================================== --- linux-kj.orig/drivers/mtd/chips/jedec.c 2005-10-28 16:25:04.000000000 +0400 +++ linux-kj/drivers/mtd/chips/jedec.c 2005-10-28 16:39:24.000000000 +0400 @@ -20,7 +20,6 @@ #include #include #include -#include static struct mtd_info *jedec_probe(struct map_info *); static int jedec_probe8(struct map_info *map,unsigned long base, Index: linux-kj/drivers/mtd/chips/map_absent.c =================================================================== --- linux-kj.orig/drivers/mtd/chips/map_absent.c 2005-10-28 16:25:04.000000000 +0400 +++ linux-kj/drivers/mtd/chips/map_absent.c 2005-10-28 16:39:24.000000000 +0400 @@ -26,7 +26,6 @@ #include #include #include -#include static int map_absent_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *); static int map_absent_write (struct mtd_info *, loff_t, size_t, size_t *, const u_char *); Index: linux-kj/drivers/mtd/chips/map_ram.c =================================================================== --- linux-kj.orig/drivers/mtd/chips/map_ram.c 2005-10-28 16:25:04.000000000 +0400 +++ linux-kj/drivers/mtd/chips/map_ram.c 2005-10-28 16:39:24.000000000 +0400 @@ -14,8 +14,6 @@ #include #include #include -#include - static int mapram_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *); static int mapram_write (struct mtd_info *, loff_t, size_t, size_t *, const u_char *); Index: linux-kj/drivers/mtd/chips/map_rom.c =================================================================== --- linux-kj.orig/drivers/mtd/chips/map_rom.c 2005-10-28 16:25:04.000000000 +0400 +++ linux-kj/drivers/mtd/chips/map_rom.c 2005-10-28 16:39:24.000000000 +0400 @@ -14,7 +14,6 @@ #include #include #include -#include static int maprom_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *); static int maprom_write (struct mtd_info *, loff_t, size_t, size_t *, const u_char *); Index: linux-kj/drivers/mtd/devices/docecc.c =================================================================== --- linux-kj.orig/drivers/mtd/devices/docecc.c 2005-10-28 16:25:04.000000000 +0400 +++ linux-kj/drivers/mtd/devices/docecc.c 2005-10-28 16:39:24.000000000 +0400 @@ -36,7 +36,6 @@ #include #include -#include /* for min() in older kernels */ #include #include Index: linux-kj/drivers/mtd/devices/docprobe.c =================================================================== --- linux-kj.orig/drivers/mtd/devices/docprobe.c 2005-10-28 16:25:04.000000000 +0400 +++ linux-kj/drivers/mtd/devices/docprobe.c 2005-10-28 16:39:24.000000000 +0400 @@ -53,7 +53,6 @@ #include #include #include -#include /* Where to look for the devices? */ #ifndef CONFIG_MTD_DOCPROBE_ADDRESS Index: linux-kj/drivers/mtd/devices/mtdram.c =================================================================== --- linux-kj.orig/drivers/mtd/devices/mtdram.c 2005-10-28 16:25:04.000000000 +0400 +++ linux-kj/drivers/mtd/devices/mtdram.c 2005-10-28 16:39:24.000000000 +0400 @@ -16,7 +16,6 @@ #include #include #include -#include #include static unsigned long total_size = CONFIG_MTDRAM_TOTAL_SIZE; Index: linux-kj/drivers/mtd/devices/pmc551.c =================================================================== --- linux-kj.orig/drivers/mtd/devices/pmc551.c 2005-10-28 16:25:04.000000000 +0400 +++ linux-kj/drivers/mtd/devices/pmc551.c 2005-10-28 16:39:24.000000000 +0400 @@ -107,7 +107,6 @@ #include #include -#include static struct mtd_info *pmc551list; Index: linux-kj/drivers/mtd/inftlmount.c =================================================================== --- linux-kj.orig/drivers/mtd/inftlmount.c 2005-10-28 16:25:04.000000000 +0400 +++ linux-kj/drivers/mtd/inftlmount.c 2005-10-28 16:39:24.000000000 +0400 @@ -39,7 +39,6 @@ #include #include #include -#include char inftlmountrev[]="$Revision: 1.16 $"; Index: linux-kj/drivers/mtd/mtdchar.c =================================================================== --- linux-kj.orig/drivers/mtd/mtdchar.c 2005-10-28 16:25:04.000000000 +0400 +++ linux-kj/drivers/mtd/mtdchar.c 2005-10-28 16:39:24.000000000 +0400 @@ -9,7 +9,6 @@ #include #include #include -#include #include #include #include Index: linux-kj/drivers/mtd/mtdcore.c =================================================================== --- linux-kj.orig/drivers/mtd/mtdcore.c 2005-10-28 16:25:04.000000000 +0400 +++ linux-kj/drivers/mtd/mtdcore.c 2005-10-28 16:39:24.000000000 +0400 @@ -18,7 +18,6 @@ #include #include #include -#include #ifdef CONFIG_PROC_FS #include #endif Index: linux-kj/drivers/mtd/mtdpart.c =================================================================== --- linux-kj.orig/drivers/mtd/mtdpart.c 2005-10-28 16:25:04.000000000 +0400 +++ linux-kj/drivers/mtd/mtdpart.c 2005-10-28 16:39:24.000000000 +0400 @@ -20,7 +20,6 @@ #include #include #include -#include /* Our partition linked list */ static LIST_HEAD(mtd_partitions); Index: linux-kj/drivers/mtd/nand/diskonchip.c =================================================================== --- linux-kj.orig/drivers/mtd/nand/diskonchip.c 2005-10-28 16:25:04.000000000 +0400 +++ linux-kj/drivers/mtd/nand/diskonchip.c 2005-10-28 16:39:24.000000000 +0400 @@ -30,7 +30,6 @@ #include #include #include -#include #include #include Index: linux-kj/drivers/mtd/nand/nand_base.c =================================================================== --- linux-kj.orig/drivers/mtd/nand/nand_base.c 2005-10-28 16:30:13.000000000 +0400 +++ linux-kj/drivers/mtd/nand/nand_base.c 2005-10-28 16:39:24.000000000 +0400 @@ -75,7 +75,6 @@ #include #include #include -#include #include #include #include Index: linux-kj/drivers/mtd/nand/nand_bbt.c =================================================================== --- linux-kj.orig/drivers/mtd/nand/nand_bbt.c 2005-10-28 16:25:04.000000000 +0400 +++ linux-kj/drivers/mtd/nand/nand_bbt.c 2005-10-28 16:39:24.000000000 +0400 @@ -57,7 +57,6 @@ #include #include #include -#include #include #include Index: linux-kj/drivers/mtd/nand/rtc_from4.c =================================================================== --- linux-kj.orig/drivers/mtd/nand/rtc_from4.c 2005-10-28 16:25:04.000000000 +0400 +++ linux-kj/drivers/mtd/nand/rtc_from4.c 2005-10-28 16:39:24.000000000 +0400 @@ -25,7 +25,6 @@ #include #include #include -#include #include #include #include Index: linux-kj/fs/jffs2/nodelist.h =================================================================== --- linux-kj.orig/fs/jffs2/nodelist.h 2005-10-28 16:25:04.000000000 +0400 +++ linux-kj/fs/jffs2/nodelist.h 2005-10-28 16:39:24.000000000 +0400 @@ -24,7 +24,6 @@ #ifdef __ECOS #include "os-ecos.h" #else -#include /* For min/max in older kernels */ #include "os-linux.h" #endif Index: linux-kj/include/linux/mtd/compatmac.h =================================================================== --- linux-kj.orig/include/linux/mtd/compatmac.h 2005-10-28 16:25:04.000000000 +0400 +++ /dev/null 1970-01-01 00:00:00.000000000 +0000 @@ -1,10 +0,0 @@ - -#ifndef __LINUX_MTD_COMPATMAC_H__ -#define __LINUX_MTD_COMPATMAC_H__ - -/* Nothing to see here. We write 2.5-compatible code and this - file makes it all OK in older kernels, but it's empty in _current_ - kernels. Include guard just to make GCC ignore it in future inclusions - anyway... */ - -#endif /* __LINUX_MTD_COMPATMAC_H__ */ Index: linux-kj/include/linux/mtd/map.h =================================================================== --- linux-kj.orig/include/linux/mtd/map.h 2005-10-28 16:25:04.000000000 +0400 +++ linux-kj/include/linux/mtd/map.h 2005-10-28 16:39:24.000000000 +0400 @@ -8,7 +8,6 @@ #include #include #include -#include #include #include #include Index: linux-kj/include/linux/mtd/mtd.h =================================================================== --- linux-kj.orig/include/linux/mtd/mtd.h 2005-10-28 16:25:04.000000000 +0400 +++ linux-kj/include/linux/mtd/mtd.h 2005-10-28 16:39:24.000000000 +0400 @@ -20,7 +20,6 @@ #include #include -#include #include #define MTD_CHAR_MAJOR 90