Skip to content

Commit

Permalink
sparc32: drop sparc model check in paging_init
Browse files Browse the repository at this point in the history
We already check the model in head_32.S so no need to
repeat the check here

Signed-off-by: Sam Ravnborg <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
sravnborg authored and davem330 committed Jul 26, 2012
1 parent c966a33 commit cc52aea
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions arch/sparc/mm/init_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit cc52aea

Please sign in to comment.