diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2012-05-11 07:35:08 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-11 22:27:48 -0400 |
commit | 582a0baee57b3fd66222f6f922e6fcf4cadb7765 (patch) | |
tree | e29383d045ae4097cb045c2611c82fc43d0dbcec /arch/sparc/mm | |
parent | 593fc6ea47882e5953f820ab24a8618f20f0a5c0 (diff) |
sparc32: remove all uses of ARCH_SUN4C
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/mm')
-rw-r--r-- | arch/sparc/mm/btfixup.c | 15 | ||||
-rw-r--r-- | arch/sparc/mm/fault_32.c | 2 |
2 files changed, 6 insertions, 11 deletions
diff --git a/arch/sparc/mm/btfixup.c b/arch/sparc/mm/btfixup.c index 09d6af22db2d..1b7aa565497e 100644 --- a/arch/sparc/mm/btfixup.c +++ b/arch/sparc/mm/btfixup.c | |||
@@ -19,7 +19,6 @@ | |||
19 | 19 | ||
20 | extern char *srmmu_name; | 20 | extern char *srmmu_name; |
21 | static char version[] __initdata = "Boot time fixup v1.6. 4/Mar/98 Jakub Jelinek (jj@ultra.linux.cz). Patching kernel for "; | 21 | static char version[] __initdata = "Boot time fixup v1.6. 4/Mar/98 Jakub Jelinek (jj@ultra.linux.cz). Patching kernel for "; |
22 | static char str_sun4c[] __initdata = "sun4c\n"; | ||
23 | static char str_srmmu[] __initdata = "srmmu[%s]/"; | 22 | static char str_srmmu[] __initdata = "srmmu[%s]/"; |
24 | static char str_iommu[] __initdata = "iommu\n"; | 23 | static char str_iommu[] __initdata = "iommu\n"; |
25 | static char str_iounit[] __initdata = "io-unit\n"; | 24 | static char str_iounit[] __initdata = "io-unit\n"; |
@@ -81,15 +80,11 @@ void __init btfixup(void) | |||
81 | if (!visited) { | 80 | if (!visited) { |
82 | visited++; | 81 | visited++; |
83 | printk(version); | 82 | printk(version); |
84 | if (ARCH_SUN4C) | 83 | printk(str_srmmu, srmmu_name); |
85 | printk(str_sun4c); | 84 | if (sparc_cpu_model == sun4d) |
86 | else { | 85 | printk(str_iounit); |
87 | printk(str_srmmu, srmmu_name); | 86 | else |
88 | if (sparc_cpu_model == sun4d) | 87 | printk(str_iommu); |
89 | printk(str_iounit); | ||
90 | else | ||
91 | printk(str_iommu); | ||
92 | } | ||
93 | } | 88 | } |
94 | for (p = ___btfixup_start; p < ___btfixup_end; ) { | 89 | for (p = ___btfixup_start; p < ___btfixup_end; ) { |
95 | count = p[2]; | 90 | count = p[2]; |
diff --git a/arch/sparc/mm/fault_32.c b/arch/sparc/mm/fault_32.c index 734812105266..a0f4db9d3a4f 100644 --- a/arch/sparc/mm/fault_32.c +++ b/arch/sparc/mm/fault_32.c | |||
@@ -235,7 +235,7 @@ asmlinkage void do_sparc_fault(struct pt_regs *regs, int text_fault, int write, | |||
235 | * nothing more. | 235 | * nothing more. |
236 | */ | 236 | */ |
237 | code = SEGV_MAPERR; | 237 | code = SEGV_MAPERR; |
238 | if (!ARCH_SUN4C && address >= TASK_SIZE) | 238 | if (address >= TASK_SIZE) |
239 | goto vmalloc_fault; | 239 | goto vmalloc_fault; |
240 | 240 | ||
241 | /* | 241 | /* |