Patchwork [12/18] sparc32: drop sparc model check in paging_init

login
register
mail settings
Submitter Sam Ravnborg
Date July 26, 2012, 9:02 p.m.
Message ID <1343336548-3879-12-git-send-email-sam@ravnborg.org>
Download mbox | patch
Permalink /patch/173514/
State Accepted
Delegated to: David Miller
Headers show

Comments

Sam Ravnborg - July 26, 2012, 9:02 p.m.
We already check the model in head_32.S so no need to
repeat the check here

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
---
 arch/sparc/mm/init_32.c |   14 +-------------
 1 files changed, 1 insertions(+), 13 deletions(-)

Patch

diff --git a/arch/sparc/mm/init_32.c b/arch/sparc/mm/init_32.c
index fc77bb8..6dce086 100644
--- a/arch/sparc/mm/init_32.c
+++ b/arch/sparc/mm/init_32.c
@@ -291,19 +291,7 @@  extern void device_scan(void);
 
 void __init paging_init(void)
 {
-	switch(sparc_cpu_model) {
-	case sparc_leon:
-	case sun4m:
-	case sun4d:
-		srmmu_paging_init();
-		break;
-	default:
-		prom_printf("paging_init: Cannot init paging on this Sparc\n");
-		prom_printf("paging_init: sparc_cpu_model = %d\n", sparc_cpu_model);
-		prom_printf("paging_init: Halting...\n");
-		prom_halt();
-	}
-
+	srmmu_paging_init();
 	prom_build_devicetree();
 	of_fill_in_cpu_data();
 	device_scan();