[PATCH 25/82] remove linux/version.h from drivers/mtd

Olaf Hering olh at suse.de
Sun Jul 10 15:35:33 EDT 2005


changing CONFIG_LOCALVERSION rebuilds too much, for no appearent reason.
remove code from obsolete kernels

Signed-off-by: Olaf Hering <olh at suse.de>

drivers/mtd/chips/cfi_cmdset_0020.c |    1 -
drivers/mtd/devices/pmc551.c        |    1 -
drivers/mtd/maps/ebony.c            |    1 -
drivers/mtd/maps/ocotea.c           |    1 -
drivers/mtd/maps/walnut.c           |    1 -
drivers/mtd/nand/au1550nd.c         |   10 ----------
drivers/mtd/nand/autcpu12.c         |    1 -
include/linux/mtd/cfi.h             |    1 -
include/linux/mtd/mtd.h             |    1 -
9 files changed, 18 deletions(-)

Index: linux-2.6.13-rc2-mm1/drivers/mtd/chips/cfi_cmdset_0020.c
===================================================================
--- linux-2.6.13-rc2-mm1.orig/drivers/mtd/chips/cfi_cmdset_0020.c
+++ linux-2.6.13-rc2-mm1/drivers/mtd/chips/cfi_cmdset_0020.c
@@ -18,7 +18,6 @@
*	- added a writev function
*/

-#include <linux/version.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/kernel.h>
Index: linux-2.6.13-rc2-mm1/drivers/mtd/devices/pmc551.c
===================================================================
--- linux-2.6.13-rc2-mm1.orig/drivers/mtd/devices/pmc551.c
+++ linux-2.6.13-rc2-mm1/drivers/mtd/devices/pmc551.c
@@ -82,7 +82,6 @@
*       * Comb the init routine.  It's still a bit cludgy on a few things.
*/

-#include <linux/version.h>
#include <linux/config.h>
#include <linux/kernel.h>
#include <linux/module.h>
Index: linux-2.6.13-rc2-mm1/drivers/mtd/maps/ebony.c
===================================================================
--- linux-2.6.13-rc2-mm1.orig/drivers/mtd/maps/ebony.c
+++ linux-2.6.13-rc2-mm1/drivers/mtd/maps/ebony.c
@@ -21,7 +21,6 @@
#include <linux/mtd/map.h>
#include <linux/mtd/partitions.h>
#include <linux/config.h>
-#include <linux/version.h>
#include <asm/io.h>
#include <asm/ibm44x.h>
#include <platforms/4xx/ebony.h>
Index: linux-2.6.13-rc2-mm1/drivers/mtd/maps/ocotea.c
===================================================================
--- linux-2.6.13-rc2-mm1.orig/drivers/mtd/maps/ocotea.c
+++ linux-2.6.13-rc2-mm1/drivers/mtd/maps/ocotea.c
@@ -19,7 +19,6 @@
#include <linux/mtd/map.h>
#include <linux/mtd/partitions.h>
#include <linux/config.h>
-#include <linux/version.h>
#include <asm/io.h>
#include <asm/ibm44x.h>
#include <platforms/4xx/ocotea.h>
Index: linux-2.6.13-rc2-mm1/drivers/mtd/maps/walnut.c
===================================================================
--- linux-2.6.13-rc2-mm1.orig/drivers/mtd/maps/walnut.c
+++ linux-2.6.13-rc2-mm1/drivers/mtd/maps/walnut.c
@@ -21,7 +21,6 @@
#include <linux/mtd/map.h>
#include <linux/mtd/partitions.h>
#include <linux/config.h>
-#include <linux/version.h>
#include <asm/io.h>
#include <asm/ibm4xx.h>
#include <platforms/4xx/walnut.h>
Index: linux-2.6.13-rc2-mm1/drivers/mtd/nand/au1550nd.c
===================================================================
--- linux-2.6.13-rc2-mm1.orig/drivers/mtd/nand/au1550nd.c
+++ linux-2.6.13-rc2-mm1/drivers/mtd/nand/au1550nd.c
@@ -20,7 +20,6 @@
#include <asm/io.h>

/* fixme: this is ugly */
-#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 0)
#include <asm/mach-au1x00/au1000.h>
#ifdef CONFIG_MIPS_PB1550
#include <asm/mach-pb1x00/pb1550.h>
@@ -28,15 +27,6 @@
#ifdef CONFIG_MIPS_DB1550
#include <asm/mach-db1x00/db1x00.h>
#endif
-#else
-#include <asm/au1000.h>
-#ifdef CONFIG_MIPS_PB1550
-#include <asm/pb1550.h>
-#endif
-#ifdef CONFIG_MIPS_DB1550
-#include <asm/db1x00.h>
-#endif
-#endif

/*
* MTD structure for NAND controller
Index: linux-2.6.13-rc2-mm1/drivers/mtd/nand/autcpu12.c
===================================================================
--- linux-2.6.13-rc2-mm1.orig/drivers/mtd/nand/autcpu12.c
+++ linux-2.6.13-rc2-mm1/drivers/mtd/nand/autcpu12.c
@@ -27,7 +27,6 @@
*	10-06-2002 TG	128K card support added
*/

-#include <linux/version.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/module.h>
Index: linux-2.6.13-rc2-mm1/include/linux/mtd/cfi.h
===================================================================
--- linux-2.6.13-rc2-mm1.orig/include/linux/mtd/cfi.h
+++ linux-2.6.13-rc2-mm1/include/linux/mtd/cfi.h
@@ -8,7 +8,6 @@
#define __MTD_CFI_H__

#include <linux/config.h>
-#include <linux/version.h>
#include <linux/delay.h>
#include <linux/types.h>
#include <linux/interrupt.h>
Index: linux-2.6.13-rc2-mm1/include/linux/mtd/mtd.h
===================================================================
--- linux-2.6.13-rc2-mm1.orig/include/linux/mtd/mtd.h
+++ linux-2.6.13-rc2-mm1/include/linux/mtd/mtd.h
@@ -14,7 +14,6 @@
#endif

#include <linux/config.h>
-#include <linux/version.h>
#include <linux/types.h>
#include <linux/module.h>
#include <linux/uio.h>




More information about the linux-mtd mailing list