]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
sparc32: drop sparc model check in paging_init
authorSam Ravnborg <sam@ravnborg.org>
Thu, 26 Jul 2012 11:02:22 +0000 (11:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Jul 2012 23:46:16 +0000 (16:46 -0700)
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/mm/init_32.c

index fc77bb8b576d8fedcf7abb9c67446a4d545a8266..6dce086a2edb5aa800d6512f745db00305159bd2 100644 (file)
@@ -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();