[PATCH 2/6] arch/blackfin: Remove dead CONFIG_BF535

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Christian Dietrich
Date: Monday, August 2, 2010 - 9:01 am

CONFIG_BF535 doesn't exist in Kconfig, therefore removing all
references to it from the source. In the past[0] there was also removed
code for this kind of CPU, reasoning, that it's not supported at all.

[0] 986d6c1e05642edac81cb8cc99f36a26d16ef220

Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
---
 arch/blackfin/include/asm/traps.h |    2 +-
 arch/blackfin/kernel/traps.c      |   11 +----------
 2 files changed, 2 insertions(+), 11 deletions(-)

diff --git a/arch/blackfin/include/asm/traps.h b/arch/blackfin/include/asm/traps.h
index 9fe0da6..113da1d 100644
--- a/arch/blackfin/include/asm/traps.h
+++ b/arch/blackfin/include/asm/traps.h
@@ -36,7 +36,7 @@
 #define VEC_CPLB_M	(38)
 #define VEC_CPLB_MHIT	(39)
 #define VEC_WATCH	(40)
-#define VEC_ISTRU_VL	(41)	/*ADSP-BF535 only (MH) */
+/* VEC_ISTRU_VL was defined here as (41), but BF535 is not supported */
 #define VEC_MISALI_I	(42)
 #define VEC_CPLB_I_VL	(43)
 #define VEC_CPLB_I_M	(44)
diff --git a/arch/blackfin/kernel/traps.c b/arch/blackfin/kernel/traps.c
index 59c1df7..2361e67 100644
--- a/arch/blackfin/kernel/traps.c
+++ b/arch/blackfin/kernel/traps.c
@@ -280,17 +280,8 @@ asmlinkage notrace void trap_c(struct pt_regs *fp)
 			goto traps_done;
 		else
 			break;
-#ifdef CONFIG_BF535
-	/* 0x29 - Instruction fetch access error (535 only) */
-	case VEC_ISTRU_VL:      /* ADSP-BF535 only (MH) */
-		info.si_code = BUS_OPFETCH;
-		sig = SIGBUS;
-		strerror = KERN_NOTICE "BF535: VEC_ISTRU_VL\n";
-		CHK_DEBUGGER_TRAP_MAYBE();
-		break;
-#else
+
 	/* 0x29 - Reserved, Caught by default */
-#endif
 	/* 0x2A - Instruction fetch misaligned, handled here */
 	case VEC_MISALI_I:
 		info.si_code = BUS_ADRALN;
-- 
1.7.0.4

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/6] Removing dead code, Christian Dietrich, (Mon Aug 2, 8:56 am)
[PATCH 1/6] arch/blackfin: Remove config HIGHMEM, Christian Dietrich, (Mon Aug 2, 9:00 am)
[PATCH 2/6] arch/blackfin: Remove dead CONFIG_BF535, Christian Dietrich, (Mon Aug 2, 9:01 am)
[PATCH 3/6] arch/blackfin: Remove CONFIG_MEM_GENERIC_BOARD, Christian Dietrich, (Mon Aug 2, 9:01 am)
[PATCH 4/6] arch/blackfin: Remove dead CONFIG_REGULATOR_AD ..., Christian Dietrich, (Mon Aug 2, 9:02 am)
[PATCH 5/6] arch/blackfin: Remove dead CONFIG_ADF702X, Christian Dietrich, (Mon Aug 2, 9:02 am)
[PATCH 6/6] arch/blackfin: Removing dead SND_BLACKFIN_AD183X, Christian Dietrich, (Mon Aug 2, 9:03 am)
Re: [PATCH 5/6] arch/blackfin: Remove dead CONFIG_ADF702X, Mike Frysinger, (Mon Aug 2, 10:34 am)
Re: [PATCH 2/6] arch/blackfin: Remove dead CONFIG_BF535, Mike Frysinger, (Mon Aug 2, 10:36 am)
Re: [PATCH 0/6] Removing dead code, Mike Frysinger, (Mon Aug 2, 10:50 am)
Re: [PATCH 1/6] arch/blackfin: Remove config HIGHMEM, Mike Frysinger, (Sat Aug 7, 7:05 pm)