[parisc-linux-cvs] Delete parisc_type_description

Matthew Wilcox willy@ldl.fc.hp.com
Thu, 04 Oct 2001 20:47:59 -0600


Index: arch/parisc/kernel/hardware.c
===================================================================
RCS file: /home/cvs/parisc/linux/arch/parisc/kernel/hardware.c,v
retrieving revision 1.26
diff -u -p -r1.26 hardware.c
--- arch/parisc/kernel/hardware.c	2001/09/18 16:12:08	1.26
+++ arch/parisc/kernel/hardware.c	2001/10/05 01:59:02
@@ -32,27 +32,6 @@
 #include <linux/kernel.h>
 #include <linux/init.h>
 
-#define HPHW_NUM_TYPES 3431	
-
-static const char * hw_type_name[] = {
-	[HPHW_NPROC]	"Processor",
-	[HPHW_MEMORY]	"Memory",
-	[HPHW_B_DMA]	"B DMA",
-	[HPHW_OBSOLETE]	"Obsolete",
-	[HPHW_A_DMA]	"A DMA",
-	[HPHW_A_DIRECT]	"A Direct",
-	[HPHW_OTHER]	"Obsolete",
-	[HPHW_BCPORT]	"Bus Converter Port",
-	[HPHW_CIO]	"HP CIO Adapter",
-	[HPHW_CONSOLE]	"Console",
-	[HPHW_FIO]	"Foreign I/O Module",
-	[HPHW_BA]	"Bus Adapter",
-	[HPHW_IOA]	"IO Adapter",
-	[HPHW_BRIDGE]	"Bus Bridge to Foreign Bus",
-	[HPHW_FABRIC]	"HP Clothing: Fabric Component",
-	[HPHW_FAULTY]	"Faulty device"
-};
-
 /*
  *	HP PARISC Hardware Database
  *	Access to this database is only possible during bootup
@@ -1428,16 +1407,6 @@ char *cpu_name_version[][2] = {
 	[pcxw]	{ "PA8500 (PCX-W)",	"2.0" },
 	[pcxw_]	{ "PA8600 (PCX-W+)",	"2.0" }
 };
-
-const char *
-parisc_type_description(unsigned short hw_type)
-{
-	if (hw_type <= HPHW_CIO) {
-		return hw_type_name[hw_type];
-	} else {
-		return "unknown type";
-	}
-}
 
 const char * __init
 parisc_hardware_description(struct parisc_device_id *id)
Index: include/asm-parisc/hardware.h
===================================================================
RCS file: /home/cvs/parisc/linux/include/asm-parisc/hardware.h,v
retrieving revision 1.22
diff -u -p -r1.22 hardware.h
--- include/asm-parisc/hardware.h	2001/09/26 18:15:20	1.22
+++ include/asm-parisc/hardware.h	2001/10/05 01:59:02
@@ -90,7 +90,6 @@ struct parisc_driver {
 
 
 /* hardware.c: */
-extern const char *parisc_type_description(unsigned short hw_type);
 extern const char *parisc_hardware_description(struct parisc_device_id *id);
 extern enum cpu_type parisc_get_cpu_type(unsigned long hversion);